diff --git a/dep/FluentAssertions.2.0.0.1/FluentAssertions.2.0.0.1.nuspec b/dep/FluentAssertions.2.0.0.1/FluentAssertions.2.0.0.1.nuspec deleted file mode 100644 index d88393aa812..00000000000 --- a/dep/FluentAssertions.2.0.0.1/FluentAssertions.2.0.0.1.nuspec +++ /dev/null @@ -1,89 +0,0 @@ - - - - FluentAssertions - 2.0.0.1 - Fluent Assertions - Dennis Doomen, Martin Opdam - Dennis Doomen, Martin Opdam - http://fluentassertions.codeplex.com/license - http://fluentassertions.codeplex.com/ - false - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or - BDD-style unit test. Runs on .NET 3.5, 4.0 and 4.5 (Desktop and Windows Store), Silverlight 4 and 5 and Windows Phone 7.5. Supports the unit test frameworks NUnit, XUnit, MBUnit, Gallio and MSpec. - Fluent methods for asserting the result of TDD/BDD specs for .NET 3.5/4.0/4.5 (Desktop and Windows Store), SL 4/5, WP7 (Mango). Supports the unit test frameworks NUnit, XUnit, MBUnit, Gallio and MSpec. - What are the major features - * Added support for .NET 4.5, Windows Phone 7.5 and .NET for Windows Store Apps - * Added support for MBUnit and the Gallio framework - * Added a completely new extensible API for comparing two objects graph for equivalence that will replace the object.ShouldHave() API in the future (issue 11841). - - What's new for collections - * Added (Not)BeInAscendingOrder() and (Not)BeInDescendingOrder() (issue 12103) - * Added IntersectWith(otherCollection) and NotIntersectWith(otherCollection) (issue 12248) - * ContainInOrder() now has an overload that only takes a params object[] argument to support a more fluent syntax in case you don't specify the reason (issue 12313). - * Added ContainSingle(Expression<Func<T, bool=""> predicate>) that asserts there is only a single element in the collection that matches the specified predicate (issue 12313). - * Added support for a lambda that is used for checking the equality of two collections (issue 11925). - * Fixed a bug that occurs when two collections are compared for equality but the collection contains null (issue 12296) - - What's new for strings - * When strings differ in length, it will report the expected and actual lengths as part of the failure messages (issue 12422) - * An ArgumentOutOfRangeException was thrown when asserting a string started with a specific string, but the first string was shorter than the expected string (issue 12293) - - What's new for numbers - * Added support for using Should().Be() on nullable numeric types (issue 11837) - * Added BeOneOf() to verify that the value matching one of the provided values (issue 12016). - * Added support for (nullable) decimals - * BePositive() and BeNegative() now also work for floats and doubles (issue 11946) - - What's new for dates and times - * Added NotBe() - * Added BeOneOf() to verify that the value matching one of the provided values (issue 12016). - * Added BeCloseTo() to assert that a datetime is within a specified number of milliseconds from another datetime value. Usefull for example when your database truncates datetime values (issue 12070). - * If a DateTime value has milliseconds then they will be displayed in an assertion failure message (issue 12072). - - What's new for comparing object graphs - * You can now apply the property equality comparisons to entire collections of objects. It doesn't matter what kind of collections types you use, as long as they contain the same number of objects which properties are the same (issue 11743). - * Included the index of the mismatching object when comparing a collection for structural equality - * An exception was thrown when comparing the properties of an object, and there were cyclic references. You can now configure if you want this to be ignored. - * Added support for comparing references to an interface rather than concrete types (issue 11840). - * Write-only properties are ignored (issue 11808) - * Fixed a stack overflow exception when formatting an object graph containing static cyclic references. - * Fixed an exception that was thrown when formatting an object graph where one of the properties threw an exception. - * Added support for comparing two anonymous types using SharedProperties() (issue 11886). - * The name of a DateTime property was not included in the error message when AllProperties() failed on that property - - What's new for types - * Added the AllTypes class with a static method From(Assembly assembly) as a wrapper around the Types extension method on Assembly (issue 12186). This allows for a more fluent syntax like AllTypes.From(assembly).ThatImplement<SomeInterface>().Should().BeDecoratedWith<SomeAttribute>(); - * Added support for asserting the properties of an attribute have a specific value (issue 12186). - - What other improvements are new - * Fixed an exception when asserting equality of dictionaries that contain nulls (issue 12004). - * The NuGet package will automatically add references to System.Xml and System.Xml.Linq - * Implemented ShouldThrow<TException>() for Func<Task>, to support working with async methods (issue 12148) - * Improved several error messages in XDocument- and XElementAssertions - * All overloads that take a reason have been removed and replaced with optional parameter - * Allowed ShouldRaisePropertyChangeFor(null) to verify that the INotifyPropertyChanged was raised for all properties. - * The list of ValueFormatters on the Verification class can be changed to insert a custom formatter. - * Introduced a mechanism to override the way FA formats objects in failure message by annotating a static method with the [ValueFormatter] attribute (issue 12364). - * Introduced a mechanism so that the failure message of custom extensions can specify the {context} tag. - * NuGet package is now based on NuGet 2.0. - - Breaking changes - * The FluentAssertions.Assertions namespace no longer exists so that all extension methods are always available through the FluentAssertions namespace. Just use a global search-replace to remove all those usage statements. - * Many of the assertion classes have moved into dedicated namespaces. You might have to fix any code that inherits from those classes. - * Remove the obsolete Verify() methods from the Verification class - Copyright Dennis Doomen 2010-2012 - en-US - MSTest xUnit NUnit MSpec Gallio MbUnit TDD BDD Fluent Silverlight - - - - - - - - - - - - \ No newline at end of file diff --git a/dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.dll b/dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.dll deleted file mode 100644 index 2b7cdcd48f6..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.dll b/dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.dll deleted file mode 100644 index 0b3d86d2475..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.dll b/dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.dll deleted file mode 100644 index b7b134705a8..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll b/dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll deleted file mode 100644 index 3e8b303a260..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.dll b/dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.dll deleted file mode 100644 index 5a400242992..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.dll b/dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.dll deleted file mode 100644 index e05a9664c67..00000000000 Binary files a/dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.dll and /dev/null differ diff --git a/dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll b/dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll new file mode 100644 index 00000000000..a838fd65265 Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.xml b/dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml similarity index 83% rename from dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.xml rename to dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml index 3c7b84b08b9..f0ae5d4604a 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/net45/FluentAssertions.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/net35/FluentAssertions.xml @@ -4,67 +4,88 @@ FluentAssertions - - - Initializes a new instance of the class. - - - Contains extension methods for custom assertions in unit tests. + Provides extension methods for monitoring and querying events. - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. + Contains extension methods for custom assertions in unit tests. - + - Provides methods for asserting the execution time of a method or property. + Asserts that the throws an exception. - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. + A reference to the method or property. + + The type of the exception it should throw. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - Returns an object for asserting that the execution time matches certain conditions. + Returns an object that allows asserting additional members of the thrown exception. - + - Provides methods for asserting the execution time of a method or property. + Asserts that the does not throw a particular exception. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns an object that can be used to assert the - current . + Asserts that the does not throw any exception at all. + The current method or property. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns an object that can be used to assert the - current . + Starts monitoring an object for its events. + Thrown if eventSource is Null. - + - Returns an object that can be used to assert the - current . + Asserts that an object has raised a particular event at least once. + The object exposing the event. + The name of the event that should have been raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the throws an exception. + Asserts that an object has raised a particular event at least once. - A reference to the method or property. - - The type of the exception it should throw. - + The object exposing the event. + + The name of the event that should have been raised. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not start with the word because, it is prepended to the message. @@ -72,18 +93,32 @@ Zero or more values to use for filling in any compatible placeholders. - - Returns an object that allows asserting additional members of the thrown exception. - + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised a particular event. + + The object exposing the event. + + The name of the event that should not be raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the throws an exception. + Asserts that an object has not raised a particular event. - A reference to the method or property. - - The type of the exception it should throw. - + The object exposing the event. + + The name of the event that should not be raised. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not start with the word because, it is prepended to the message. @@ -91,18 +126,29 @@ Zero or more values to use for filling in any compatible placeholders. - - Returns an object that allows asserting additional members of the thrown exception. - + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the does not throw a particular exception. + Asserts that an object has raised the event for a particular property. - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not start with the word because, it is prepended to the message. @@ -110,12 +156,28 @@ Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the does not throw any exception at all. + Asserts that an object has not raised the event for a particular property. - The current method or property. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not start with the word because, it is prepended to the message. @@ -123,6 +185,71 @@ Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Obtains the for a particular event of the . + + The object for which to get an event recorder. + The name of the event. + + + + + Asserts that all occurences of the event originated from the . + + + + + Asserts that at least one occurrence of the event had an object matching a predicate. + + + + + Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow + overloads. + + + + + Provides methods for asserting the execution time of a method or property. + + The object that exposes the method or property. + A reference to the method or property to measure the execution time of. + + Returns an object for asserting that the execution time matches certain conditions. + + + + + Provides methods for asserting the execution time of a method or property. + + A reference to the method or property to measure the execution time of. + + Returns an object for asserting that the execution time matches certain conditions. + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + @@ -178,6 +305,12 @@ current . + + + Returns an object that can be used to assert the + current . + + Returns an object that can be used to assert the @@ -400,6 +533,11 @@ + + + Contains a number of methods to assert that an is in the expectation state. + + Contains a number of methods to assert that an is in the expected state. @@ -410,6 +548,30 @@ Contains a number of methods to assert that a reference type object is in the expected state. + + + Asserts that the current object has not been initialized yet. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current object has been initialized. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is of the specified type . @@ -423,6 +585,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the object is of the specified type . + + + The type that the subject is supposed to be of. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is assignable to a variable of type . @@ -455,31 +632,10 @@ Gets the object which value is being asserted. - + - Asserts that the number of items in the collection matches the supplied amount. + Returns the type of the subject the assertion applies on. - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - @@ -749,10 +905,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current collection has the supplied at the + supplied . + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -761,10 +920,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Asserts that the current collection does not contain the supplied item. + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -773,13 +933,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has the supplied at the - supplied . + Asserts that the collection shares one or more items with the specified . - The index where the element is expected - The expected element + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -788,11 +946,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection does not contain the supplied item. + Asserts that the collection does not share any items with the specified . - The element that is not expected to be in the collection + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -801,11 +959,16 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Returns the type of the subject the assertion applies on. - The with the expected shared items. + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -814,11 +977,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the number of items in the collection matches a condition stated by the . - The to compare to. + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -827,11 +990,6 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expectation state. - - Asserts that two collections contain the same items in the same order, where equality is determined using a @@ -923,15 +1081,12 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expected state. - - - + - Asserts that the current dictionary has not been initialized yet with an actual dictionary. + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -940,10 +1095,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary has been initialized with an actual dictionary. + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -952,24 +1109,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the number of items in the dictionary matches the supplied amount. + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + A params array with the expected elements. - + - Asserts that the number of items in the dictionary matches a condition stated by a predicate. + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . - The predicate which must be statisfied by the amount of items. + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -978,22 +1130,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary does not contain any items. + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + An with the expected elements. - + - Asserts that the dictionary contains at least 1 item. + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1002,13 +1151,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. - The expected dictionary + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1017,13 +1165,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. - The unexpected dictionary + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1032,226 +1179,83 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. + Asserts that the collection contains some extra items in addition to the original items. - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + An of expectation items. + Additional items that are expectation to be contained by the collection. - + - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. + Asserts that the collection contains some extra items in addition to the original items. - The expected keys + An of expectation items. + Additional items that are expectation to be contained by the collection. - + - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. + Gets the active configuration, - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. + Gets or sets the assembly name to scan for custom value formatters in case + is set to . - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. + Maintains the framework-specific services. - The expected values - + - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. + Finds the first index at which the does not match the + string anymore, including the exact casing. - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. + Finds the first index at which the does not match the + string anymore, accounting for the specified . - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. + Gets the quoted three characters at the specified index of a string, including the index itself. - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. + Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. + Joins a string with one or more other strings using a specified separator. - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + Any string that is empty (including the original string) is ignored. + - + - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. + Changes the first character of a string to uppercase. - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - Determines whether two objects refer to the same property. - + Finds the property by a case-sensitive name. @@ -1259,7 +1263,7 @@ Returns null if no such property exists. - + Determines whether the specified method has been annotated with a specific attribute. @@ -1267,901 +1271,1236 @@ true if the specified method has attribute; otherwise, false. - + - Provides extension methods for monitoring and querying events. + Defines the modes in which custom implementations of are detected as configured + through . - + - Starts monitoring an object for its events. + Detection is disabled. - Thrown if eventSource is Null. - + - Asserts that an object has raised a particular event at least once. + Only custom value formatters exposed through the assembly set in + are detected. - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised a particular event at least once. + All custom value formatters in any assembly loaded in the current will be detected. - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Represents a collection of assertion results obtained through a . - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . - + - Asserts that an object has raised the event for a particular property. + Gets a value indicating whether this collection contains a set without any failures at all. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Defines a step in the process of comparing two object graphs for structural equivalency. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Gets a value indicating whether this step can handle the current subject and/or expectation. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + May throw when preconditions are not met or if it detects mismatching data. - + - Asserts that all occurences of the event originated from the . + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + - Static methods that aid in generic event subscription + Defines a strategy for handling failures in a . - + - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. + Instructs the strategy to handle a assertion failure. - + - Finds the Return Type of a Delegate. + Discards and returns the failure messages that happened up to now. - + - Returns an Array of Types that make up a delegate's parameter signature. + Will throw a combined exception for any failures have been collected since was called. - + - Returns an array of types appended with an EventRecorder reference at the beginning. + Returns the messages for the assertion failures that happened until now. - + - Returns T/F Dependent on a Type Being a Delegate. + Discards and returns the failure messages that happened up to now. - + - Returns the MethodInfo for the Delegate's "Invoke" Method. + Will throw a combined exception for any failures have been collected since was called. - + - Records activity for a single event. + Instructs the strategy to handle a assertion failure. - + - Records raised events for one event on one object + Returns the messages for the assertion failures that happened until now. - + - Store information about a raised event + Instructs the strategy to handle a assertion failure. - Parameters the event was raised with - + - The object events are recorded from + Discards and returns the failure messages that happened up to now. - + - The name of the event that's recorded + Will throw a combined exception for any failures have been collected since was called. - + + Returns the messages for the assertion failures that happened until now. - The object events are recorded from - The name of the event that's recorded - + - Enumerate raised events + Specialized value formatter that looks for static methods in the caller's assembly marked with the + . - + - Enumerate raised events + Indicates whether the current can handle the specified . - + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Called by the auto-generated IL, to record information about a raised event. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - The object events are recorded from + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - The name of the event that's recorded + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - This class is used to store data about an intercepted event + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Default constructor stores the parameters the event was raised with + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Parameters for the event + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Gets an object that wraps and executes a conditional or unconditional verification. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Throws a generic exception in case no other test harness is detected. + Marks a static method as a kind of for a particular type. - + - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. + Contains a number of methods to assert that an yields the expected result. - + - Throws a framework-specific exception to indicate a failing unit test. + Asserts that the current throws an exception of type . + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a value indicating whether the corresponding test framework is currently available. + Asserts that the current does not throw an exception of type . + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Throws a framework-specific exception to indicate a failing unit test. + Asserts that the current does not throw any exception. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. - + - Gets a value indicating whether the corresponding test framework is currently available. + Initializes a new instance of the class. - + - Throws a framework-specific exception to indicate a failing unit test. + Selection rule that adds all public properties of the subject as far as they are defined on the declared + type. - + - Gets a value indicating whether the corresponding test framework is currently available. + Represents a rule that defines which properties of the subject-under-test to include while comparing + two objects for structural equality. - + - Provides a fluent API for verifying an arbitrary condition. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + Type info about the subject. + + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Initializes a new instance of the class. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - Gets the name or identifier of the current subject, or a default value if the subject is not known. + Selection rule that adds all public properties of the subject based on its run-time type rather than its + declared type. - + - Specify the condition that must be satisfied. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. - If true the verification will be succesful. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Specify a predicate that with the condition that must be satisfied. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - Specify the reason why you expect the condition to be true. + Gets a value indicating whether this step can handle the current subject and/or expectation. - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Define the failure message for the verification. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. + May throw when preconditions are not met or if it detects mismatching data. - The format string that represents the failure message. - Optional arguments for the - + - Indicates that every argument passed into is displayed on a separate line. + General purpose implementation of that uses a predicate to determine whether + this rule applies to a particular property and executes an action to assert equality. + The type of the subject. - + - Gets or sets the name of the subject for the next verification. + Defines how a subject's property is compared for equality with the same property of the expectation. + + Provides details about the subject's property. + + + The value of the subject's property. + + + The value of a property on expectation object that was identified + + + Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. + Returns false if this rule doesn't support the subject's type. + Throws if the rule did support the data type but assertion fails. + - + - Extension methods on to allow for a more fluent way of specifying a . + Defines how a subject's property is compared for equality with the same property of the expectation. - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- + + Provides details about the subject's property. + + + The value of the subject's property. + + + The value of a property on expectation object that was identified + + + Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. + Returns false if this rule doesn't support the subject's type. + Throws if the rule did support the data type but assertion fails. +
- + - Returns a new value for the specified and - in the month January. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - Returns a new value for the specified and - in the month February. + Provides the required information for executing an equality assertion between a subject and an expectation. + The type of the subject. - + - Returns a new value for the specified and - in the month March. + Gets the of the property that returned the current object, or null if the current + object represents the root object. - + - Returns a new value for the specified and - in the month April. + Gets the value of the - + - Returns a new value for the specified and - in the month May. + Gets the value of the expectation object that was matched with the subject using a . - + - Returns a new value for the specified and - in the month June. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - + - Returns a new value for the specified and - in the month July. + Zero or more objects to format using the placeholders in . - + - Returns a new value for the specified and - in the month August. + Selection rule that removes a particular property from the structural comparison based on a predicate. - + - Returns a new value for the specified and - in the month September. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Returns a new value for the specified and - in the month October. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - Returns a new value for the specified and - in the month November. + Provides details about the subject's root or nested property. - + - Returns a new value for the specified and - in the month December. + Gets the of the property that returned the current object, or null if the current + object represents the root object. - + - Returns a new value for the specified and . + Gets the full path from the root object until the current object separated by dots. - + - Returns a new value for the specified and time with the specified - , and optionally . + Gets a display-friendly representation of the . - + - Returns a new value that is the current before the - specified . + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. - + - Returns a new value that is the current after the - specified . + Gets the run-time type of the current object. - + - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . + Provides the run-time details of the class. - + - Indicates whether the current can handle the specified . + Gets an ordered collection of selection rules that define what properties are included. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets an ordered collection of matching rules that determine which subject properties are matched with which + expectation properties. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with + expectation properties. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Determines whether this instance can handle the specified value. + Represents a selection context of a nested property - The value. - - true if this instance can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets the of the property that returned the current object, or + null if the current object represents the root object. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets the full path from the root object until the current property, separated by dots. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets a textual description of the current property based on the . - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets the run-time type of the current object. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Provides services for formatting an object being used in an assertion in a human readable format. + Is responsible for the exact run-time behavior of a structural equality comparison. + The type of the subject. - + - A list of objects responsible for formatting the objects represented by placeholders. + Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects + or collections. - + - Returns a human-readable representation of a particular object. + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Adds all public properties of the subject as far as they are defined on the declared type. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Adds all public properties of the subject based on its run-time type rather than its declared type. - The value for which to create a . - - - A collection of objects that + + + + Tries to match the properties of the subject with equally named properties on the expectation. Ignores those + properties that don't exist on the expectation. + + + + + Requires the expectation to have properties which are equally named to properties on the subject. + + + + + + Excludes the specified (nested) property from the structural equality check. + + + + + Excludes a (nested) property based on a predicate from the structural equality check. + + + + + Includes the specified property in the equality check. + + + This overrides the default behavior of including all declared properties. + + + + + The assertion to execute when the predicate is met. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + + + Causes the structural equality check to include nested collections and complex types. + + + + + Causes the structural equality check to exclude nested collections and complex types. + + + Behaves similarly to the old property assertions API. + + + + + Causes the structural equality check to ignore any cyclic references. + + + By default, cyclic references within the object graph will cause an exception to be thrown. + + + + + Clears all selection rules, including those that were added by default. + + + + + Clears all matching rules, including those that were added by default. + + + + + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. + + + + + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. + + + + + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules + + + + + Causes all collections to be compared in the order in which the items appear in the expectation. + + + + + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. + + + + + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. + + + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 + + + + Gets an ordered collection of selection rules that define what properties are included. + + + + + Gets an ordered collection of matching rules that determine which subject properties are matched with which + expectation properties. + + + + + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with + expectation properties. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. + + + + + Gets value indicating whether the equality check will include nested collections and complex types. + + + + + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Defines additional overrides when used with + + + + + Allows overriding the way structural equality is applied to (nested) objects of tyoe + + + + + Allows overriding the way structural equality is applied to particular properties. + + + A predicate based on the of the subject that is used to identify the property for which the + override applies. + + + + + Defines a rule that is used to determine whether the order of items in collections is relevant or not. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + An ordering rule that basically states that the order of items in all collections is important. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Collection of s. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. + + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Asserts that the subject is considered equal to another object according to the implementation of . + + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the subject is not equal to another object according to its implementation of . + + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the subject is less than another object according to its implementation of . + + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the subject is less than or equal to another object according to its implementation of . + + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the subject is greater than another object according to its implementation of . + + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Asserts that the subject is greater than or equal to another object according to its implementation of . - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - + + The object to pass to the subject's method. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a that represents this instance. + Asserts that a value is within a range. - The value for which to create a . - - - A collection of objects that + + Where the range is continuous or incremental depends on the actual type of the value. + + + The minimum valid value of the range. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + The maximum valid value of the range. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Returns the type of the subject the assertion applies on. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Defines the way compares the expected exception + message with the actual one. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + The message must match exactly, including the casing of the characters. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + The message must match except for the casing of the characters. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + The message must start with the exact text, including the casing of the characters.. + + + The message must match exactly, including the casing of the characters. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + The message must start with the text except for the casing of the characters. - The value for which to create a . - - - A collection of objects that + + + + The message must contain the exact text. + + + + + The message must contain the text except for the casing of the characters. + + + + + The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. + + + + + Indication of how cyclic references should be handled when validating equality of nested properties. + + + + + Cyclic references will be ignored. + + + + + Cyclic references will result in an exception. + + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Asserts that the number of items in the dictionary matches the supplied amount. + + The expected number of items. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Marks a static method as a kind of for a particular type. + Asserts that the number of items in the dictionary matches a condition stated by a predicate. + The predicate which must be statisfied by the amount of items. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Indicates whether the current can handle the specified . + Asserts that the dictionary does not contain any items. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a that represents this instance. + Asserts that the dictionary contains at least 1 item. - The value for which to create a . - - - A collection of objects that + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Returns a that represents this instance. + Asserts that the current dictionary contains all the same key-value pairs as the + specified dictionary. Keys and values are compared using + their implementation. - The value for which to create a . - - - A collection of objects that + The expected dictionary + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Asserts the current dictionary not to contain all the same key-value pairs as the + specified dictionary. Keys and values are compared using + their implementation. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - + The unexpected dictionary + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a that represents this instance. + Asserts that the dictionary contains the specified key. Keys are compared using + their implementation. - The value for which to create a . - - - A collection of objects that + The expected key + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. + + Zero or more objects to format using the placeholders in . - - A that represents this instance. - - + - Contains a number of extension methods for floating point . + Asserts that the dictionary contains all of the specified keys. Keys are compared using + their implementation. + The expected keys - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the dictionary contains all of the specified keys. Keys are compared using + their implementation. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The expected keys A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2170,17 +2509,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the current dictionary does not contain the specified key. + Keys are compared using their implementation. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The unexpected key A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2189,17 +2523,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the dictionary contains the specified value. Values are compared using + their implementation. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2208,17 +2537,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the dictionary contains all of the specified values. Values are compared using + their implementation. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The expected values + + + + Asserts that the dictionary contains all of the specified values. Values are compared using + their implementation. + + The expected values A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2227,18 +2558,26 @@ Zero or more objects to format using the placeholders in . - + - Contains a number of methods to assert that an is in the expected state. + Asserts that the current dictionary does not contain the specified value. + Values are compared using their implementation. + The unexpected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the subject is considered equal to another object according to the implementation of . + Asserts that the current dictionary contains the specified . + Keys and values are compared using their implementation. - - The object to pass to the subject's method. - + The expected A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2247,13 +2586,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is not equal to another object according to its implementation of . + Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The object to pass to the subject's method. - + The key for which to validate the value + The value to validate A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2262,13 +2600,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is less than another object according to its implementation of . + Asserts that the current dictionary does not contain the specified . + Keys and values are compared using their implementation. - - The object to pass to the subject's method. - + The unexpected A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2277,13 +2614,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is less than or equal to another object according to its implementation of . + Asserts that the current dictionary does not contain the specified for the + supplied . Values are compared using their implementation. - - The object to pass to the subject's method. - + The key for which to validate the value + The value to validate A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2292,13 +2629,20 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is greater than another object according to its implementation of . + Returns the type of the subject the assertion applies on. + + + + + Contains a number of methods to assert that a is in the correct state. + + + + + Asserts that the is . - - The object to pass to the subject's method. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2307,13 +2651,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is greater than or equal to another object according to its implementation of . + Asserts that the is not . - - The object to pass to the subject's method. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2322,19 +2663,24 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a value is within a range. + Asserts that the is equal to the GUID. - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. + The expected value to compare the actual value with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The maximum valid value of the range. + + Zero or more objects to format using the placeholders in . + + + + Asserts that the is equal to the GUID. + + The expected value to compare the actual value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2343,244 +2689,265 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a nullable numeric value is not null. + Asserts that the is not equal to the GUID. + The unexpected value to compare the actual value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - Zero or more objects to format using the placeholders in . - + + Zero or more objects to format using the placeholders in . + + + + + Gets the object which value is being asserted. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Selection rule that removes a particular property from the structural comparison. + + + + + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + + The collection of properties after applying this rule. Can contain less or more than was passed in. + + + + + Returns a that represents this instance. + + + A that represents this instance. + + + + + Represents a rule that defines how to map the properties from the subject-under-test with the properties + on the expectation object. + + + + + Attempts to find a property on the expectation that should be compared with the + during a structural equality. + + + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. + + + The of the subject's property for which a match must be found. Can never + be null. + + + The expectation object for which a matching property must be returned. Can never be null. + + + The dotted path from the root object to the current property. Will never be null. + + + Returns the of the property with which to compare the subject with, or null + if no match was found. + - + - Asserts that a nullable numeric value is null. + Selection rule that includes a particular property in the structural comparison. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Gets the object which value is being asserted. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Contains a number of methods to assert that an is in the expected state. + Returns a that represents this instance. + + A that represents this instance. + - + - Asserts that the integral number value is exactly the same as the value. + Provides information on a particular property during an assertion for structural equality of two object graphs. - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the integral number value is exactly the same as the value. + Gets the value of the . - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the integral number value is not the same as the value. - - The unexpected value. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - +
- + - Asserts that the integral number value is not the same as the value. + Zero or more objects to format using the placeholders in . - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the numeric value is greater than or equal to zero. + Gets a value indicating whether the current context represents the root of the object graph. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the numeric value is less than zero. + Gets the value of the - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the numeric value is less than the specified value. + Requires the expectation object to have a property with the exact same name. - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the numeric value is less than or equal to the specified value. + Attempts to find a property on the expectation that should be compared with the + during a structural equality. - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. + + + The of the subject's property for which a match must be found. Can never + be null. - - Zero or more objects to format using the placeholders in . + + The expectation object for which a matching property must be returned. Can never be null. + + The dotted path from the root object to the current property. Will never be null. + + + Returns the of the property with which to compare the subject with, or null + if no match was found. + - + - Asserts that the numeric value is greater than the specified value. + Returns a string that represents the current object. - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + A string that represents the current object. + + 2 - + - Asserts that the numeric value is greater than or equal to the specified value. + Finds a property of the expectation with the exact same name, but doesn't require it. - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a value is within a range. + Attempts to find a property on the expectation that should be compared with the + during a structural equality. - Where the range is continuous or incremental depends on the actual type of the value. + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. - - The minimum valid value of the range. - - - The maximum valid value of the range. + + The of the subject's property for which a match must be found. Can never + be null. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + + The expectation object for which a matching property must be returned. Can never be null. - - Zero or more objects to format using the placeholders in . + + The dotted path from the root object to the current property. Will never be null. + + Returns the of the property with which to compare the subject with, or null + if no match was found. + - + - Asserts that a value is one of the specified . + Returns a string that represents the current object. - - The values that are valid. - + + A string that represents the current object. + + 2 - + - Asserts that a value is one of the specified . + Static class that allows for a 'fluent' selection of the types from an . - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + AllTypes.From(myAssembly)
+ .ThatImplement<ISomeInterface>
+ .Should()
+ .BeDecoratedWith<SomeAttribute>() +
- + - Asserts that a nullable numeric value is not null. + Returns a for selecting the types that are visible outside the + specified . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The assembly from which to select the types. - + - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + Contains assertions for the objects returned by the parent . +
- + - Contains a number of methods to assert that a is in the expected state. + Initializes a new instance of the class. + The method to assert. - + - Asserts that the value is false. + Initializes a new instance of the class. + + The methods to assert. + + + + Asserts that the selected methods are virtual. A formatted phrase as is supported by explaining why the assertion @@ -2590,9 +2957,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the value is true. + Asserts that the selected methods are decorated with the specified . A formatted phrase as is supported by explaining why the assertion @@ -2602,11 +2969,14 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the value is equal to the specified value. + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . - The expected value + + The predicate that the attribute must match. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2615,153 +2985,115 @@ Zero or more objects to format using the placeholders in . - + Gets the object which value is being asserted. - + - Defines the way compares the expected exception - message with the actual one. + Returns the type of the subject the assertion applies on. - + - The message must match exactly, including the casing of the characters. + Allows for fluent selection of methods of a type through reflection. - + - The message must match except for the casing of the characters. + Initializes a new instance of the class. + The type from which to select methods. - + - The message must start with the exact text, including the casing of the characters.. + Initializes a new instance of the class. + The types from which to select methods. - + - The message must start with the text except for the casing of the characters. + Only select the methods that return the specified type - + - The message must contain the exact text. + Only select the methods that are decorated with an attribute of the specified type. - + - The message must contain the text except for the casing of the characters. + The resulting objects. - + - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. + Determines whether the specified method has a special name (like properties and events). - + - Contains a number of methods to assert that a is in the expected state. + Returns an enumerator that iterates through the collection. - - You can use the for a more fluent way of specifying a . - + + A that can be used to iterate through the collection. + + 1 - + - Asserts that the current is exactly equal to the value. + Returns an enumerator that iterates through a collection. - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + An object that can be used to iterate through the collection. + + 2 - + - Asserts that the current is not equal to the value. + Only select the methods that are public or internal. - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. + Only select the methods without a return value - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is before the specified value. + Contains a number of methods to assert that a nullable is in the expected state. - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is either on, or before the specified value. + Asserts that a nullable value is not null. - The that the current value is expected to be on or before. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that the current is after the specified value. + Asserts that a nullable value is null. - The that the current value is expected to be after. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that the current is either on, or after the specified value. + Asserts that the value is equal to the specified value. - The that the current value is expected to be on or after. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2770,11 +3102,16 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the year. + Contains a number of methods to assert that an is in the expected state. - The expected year of the current value. + + + + Asserts that the integral number value is exactly the same as the value. + + The expected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2783,11 +3120,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the month. + Asserts that the integral number value is exactly the same as the value. - The expected month of the current value. + The expected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2796,11 +3133,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the day. + Asserts that the integral number value is not the same as the value. - The expected day of the current value. + The unexpected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2809,11 +3146,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the hour. + Asserts that the integral number value is not the same as the value. - The expected hour of the current value. + The unexpected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2822,11 +3159,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the minute. + Asserts that the numeric value is greater than or equal to zero. - The expected minutes of the current value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2835,11 +3171,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current has the second. + Asserts that the numeric value is less than zero. - The expected seconds of the current value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2848,66 +3183,11 @@ Zero or more objects to format using the placeholders in . - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - + - Asserts that the is . + Asserts that the numeric value is less than the specified value. + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2916,10 +3196,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is not . + Asserts that the numeric value is less than or equal to the specified value. + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2928,11 +3209,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is equal to the GUID. + Asserts that the numeric value is greater than the specified value. - The expected value to compare the actual value with. + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2941,11 +3222,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is equal to the GUID. + Asserts that the numeric value is greater than or equal to the specified value. - The expected value to compare the actual value with. + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2954,11 +3235,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is not equal to the GUID. + Asserts that a value is within a range. - The unexpected value to compare the actual value with. + + Where the range is continuous or incremental depends on the actual type of the value. + + + The minimum valid value of the range. + + + The maximum valid value of the range. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2967,31 +3256,32 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - + - Contains a number of methods to assert that a nullable is in the expected state. + Asserts that a value is one of the specified . + + The values that are valid. + - + - Asserts that a nullable boolean value is not null. + Asserts that a value is one of the specified . + + The values that are valid. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that a nullable boolean value is null. + Asserts that a nullable numeric value is not null. A formatted phrase as is supported by explaining why the assertion @@ -3001,98 +3291,232 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the value is equal to the specified value. + Asserts that a nullable numeric value is null. - The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Contains a number of methods to assert that a nullable is in the expected state. + Is responsible for validating the equality of one or more properties of a subject with another object. + + + + + Provides access the list of steps that are executed in the order of appearance during an equivalency test. + + + + + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. + + + + + Custom version of ICloneable that works on all frameworks. + + + + + Creates a new object that is a copy of the current instance. + + + + A new object that is a copy of this instance. + + + + + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. - You can use the for a more fluent way of specifying a . + The behavior of a cyclic reference is determined byt he constructor + parameter. - + - Asserts that a nullable value is not null. + Creates a new object that is a copy of the current instance. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + + A new object that is a copy of this instance. + - + - Asserts that a nullable value is null. + Represents an object tracked by the including it's location within an object graph. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the value is equal to the specified value. + Determines whether the specified is equal to the current . - The expected value + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 + + + + Serves as a hash function for a particular type. + + + A hash code for the current . + + 2 + + + + Provides methods for asserting that the execution time of an satifies certain conditions. + + + + + Initializes a new instance of the class. + + The action of which the execution time must be asserted. + + + + Asserts that the execution time of the operation does not exceed a specified amount of time. + + + The maximum allowed duration. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Contains a number of methods to assert that a nullable is in the expected state. + Provides methods for asserting that the execution time of an object member satifies certain conditions. + - + - Asserts that a nullable value is not null. + Initializes a new instance of the class. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The object that exposes the method or property. + A reference to the method or property to measure the execution time of. - + - Asserts that a nullable value is null. + Gets the of the property that returned the current object, or + null if the current object represents the root object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the value is equal to the specified value. + Gets the full path from the root object until the current property, separated by dots. - The expected value + + + + Gets a textual description of the current property based on the . + + + + + Gets the value of the + + + + + Gets the value of the . + + + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + + + Zero or more objects to format using the placeholders in . + + + + + Gets a value indicating whether the current context represents the root of the object graph. + + + + + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. + + + + + Gets the run-time type of the current object. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Contains a number of extension methods for floating point . + + + + + Asserts a floating point value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3101,23 +3525,17 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - + - Asserts that the time difference of the current is greater than zero. + Asserts a floating point value approximates another value as close as possible. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3126,10 +3544,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is less than zero. + Asserts a double value approximates another value as close as possible. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3138,12 +3563,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is equal to the - specified time. + Asserts a double value approximates another value as close as possible. - The expected time difference + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3152,12 +3582,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is not equal to the - specified time. + Asserts a decimal value approximates another value as close as possible. - The unexpected time difference + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3166,12 +3601,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is less than the - specified time. + Asserts a decimal value approximates another value as close as possible. - The time difference to which the current value will be compared + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3180,12 +3620,27 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is less than or equal to the - specified time. + Contains assertions for the objects returned by the parent . + + + + + Initializes a new instance of the class, for a single . + + The property to assert. + + + + Initializes a new instance of the class, for a number of objects. + + The properties to assert. + + + + Asserts that the selected properties are virtual. - The time difference to which the current value will be compared A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3194,12 +3649,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is greater than the - specified time. + Asserts that the selected properties have a setter. - The time difference to which the current value will be compared A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3208,12 +3661,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the time difference of the current is greater than or equal to the - specified time. + Asserts that the selected methods are decorated with the specified . - The time difference to which the current value will be compared A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3222,180 +3673,184 @@ Zero or more objects to format using the placeholders in . - + Gets the object which value is being asserted. - + - Asserts that a nullable value is not null. + Returns the type of the subject the assertion applies on. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a nullable value is null. + Allows for fluent selection of properties of a type through reflection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains a number of methods to assert that an is in the expected state. + Initializes a new instance of the class. + The type from which to select properties. - + - Asserts that an object equals another object using its implementation. + Initializes a new instance of the class. - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The types from which to select properties. - + - Asserts that an object does not equal another object using it's method. + Only select the properties that are decorated with an attribute of the specified type. - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that an object reference refers to the exact same object as another object reference. + Only select the properties that return the specified type - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + + + The resulting objects. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Only select the properties that have a public or internal getter. + + + + + Dedicated class for comparing two strings and generating consistent error messages. + + + + + Gets or sets a value indicating whether the subject should not match the pattern. + + + + + Gets or sets a value indicating whether the matching process should ignore any casing difference. + + + + + Extension methods for getting method and property selectors for a type. + + + + + Returns the types that are visible outside the specified . + + + + + Returns a method selector for the current . + + + + + Returns a method selector for the current . + + + + + Returns a property selector for the current . + + + + + Returns a property selector for the current . + + + + + Allows for fluent filtering a list of types. + + + + + The resulting objects. + + + - Asserts that an object reference refers to a different object than another object reference refers to. + Determines whether a type is a subclass of another type, but NOT the same type. - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the object is null. + Determines whether a type implements an interface (but is not the interface itself). - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the object is not null. + Determines whether a type is decorated with a particular attribute. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. + Determines whether the namespace of type is exactly . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. + Determines whether the namespace of type is starts with . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains a number of methods to assert that a is in the expected state. + Returns an enumerator that iterates through the collection. + + A that can be used to iterate through the collection. + + 1 - + - Initializes a new instance of the class. + Returns an enumerator that iterates through a collection. + + An object that can be used to iterate through the collection. + + 2 - + - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. + Contains a number of methods to assert that all s in a + meet certain expectations. - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the is one of the specified . + Initializes a new instance of the class. - - The values that are valid. - - + - Asserts that the is one of the specified . + Asserts that the current is decorated with the specified . - - The values that are valid. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3404,13 +3859,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. + Asserts that the current is decorated with an attribute of type + that matches the specified . - - The string that the subject is expected to be equivalent to. + + The predicate that the attribute must match. A formatted phrase as is supported by explaining why the assertion @@ -3420,72 +3875,32 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. + Gets the object which value is being asserted. - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string matches a wildcard pattern. + Contains a number of methods to assert that an is in the expected state. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string does not match a wildcard pattern. + Initializes a new instance of the class. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string matches a wildcard pattern. + Asserts that the current equals the attribute. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The expected attribute - + - Asserts that a string does not match a wildcard pattern. + Asserts that the current equals the attribute. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - + The expected attribute A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3494,26 +3909,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. + Asserts that the current does not equal the attribute, + using its implementation. - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The unexpected attribute - + - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current does not equal the attribute, + using its implementation. - The string that the subject is expected to start with. + The unexpected attribute A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3522,26 +3930,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. + Asserts that the current has the specified value. - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The expected value - + - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current has the specified value. - The string that the subject is expected to end with. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3550,42 +3949,34 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string contains another (fragment of a) string. + Returns the type of the subject the assertion applies on. - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. + Contains a number of methods to assert that an is in the expected state. - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string does not contain another (fragment of a) string. + Initializes a new instance of the class. + + + + + Asserts that the current equals the document, + using its implementation. + + The expected document + + + + Asserts that the current equals the document, + using its implementation. - - The (fragement of a) string that the current string should not contain. - + The expected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3594,24 +3985,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current does not equal the document, + using its implementation. - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The unexpected document - + - Asserts that a string is . + Asserts that the current does not equal the document, + using its implementation. + The unexpected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3620,10 +4006,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is not . + Asserts that the current is equivalent to the document, + using its implementation. + + The expected document + + + + Asserts that the current is equivalent to the document, + using its implementation. + The expected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3632,11 +4027,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string has the specified length. + Asserts that the current is not equivalent to the document, + using its implementation. - The expected length of the string + The unexpected document + + + + Asserts that the current is not equivalent to the document, + using its implementation. + + The unexpected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3645,10 +4048,26 @@ Zero or more objects to format using the placeholders in . - + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + + - Asserts that a string is null. + Asserts that the current has a root element with the specified + name. + The name of the expected root element of the current document. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3657,10 +4076,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is not null. + Asserts that the current has a root element with the specified + name. + The full name of the expected root element of the current document. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3669,127 +4090,103 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is neither null nor . + Asserts that the element of the current has a direct + child element with the specified name. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. + + The name of the expected child element of the current document's Root element. - + - Asserts that a string is either null or . + Asserts that the element of the current has a direct + child element with the specified name. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. + + The full name of the expected child element of the current document's Root element. - + - Asserts that a string is neither null nor nor white space + Asserts that the element of the current has a direct + child element with the specified name. + + The name of the expected child element of the current document's Root element. + - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that a string is either null or or white space + Asserts that the element of the current has a direct + child element with the specified name. + + The full name of the expected child element of the current document's Root element. + - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - + - Gets or sets a value indicating whether the subject should not match the pattern. + Returns the type of the subject the assertion applies on. - + - Gets or sets a value indicating whether the matching process should ignore any casing difference. + Contains a number of methods to assert that an is in the expected state. - + - Contains a number of methods to assert that two objects differ in the expected way. + Initializes a new instance of the class. - - You can use the and for a more fluent - way of specifying a or a . - - + - Asserts that a occurs a specified amount of time before another . + Asserts that the current equals the element. - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + The expected element - + - Asserts that a occurs a specified amount of time after another . + Asserts that the current equals the element. - - The to compare the subject with. - + The expected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Provides the logic and the display text for a . - - - + - Contains a number of methods to assert that an yields the expected result. + Asserts that the current does not equal the element, + using its implementation. + The unexpected element - + - Asserts that the current throws an exception of type . + Asserts that the current does not equal the element, + using its implementation. + The unexpected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3798,22 +4195,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current does not throw an exception of type . + Asserts that the current is equivalent to the element, + using its implementation. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The expected element - + - Asserts that the current does not throw any exception. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3822,897 +4216,1084 @@ Zero or more objects to format using the placeholders in . - - - Gets the that is being asserted. - - - + - Contains a number of methods to assert that an is in the correct state. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - + - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. + Asserts that the current is not equivalent to the element, + using its implementation. - - The expected message of the exception. - + The unexpected element - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . + Zero or more objects to format using the placeholders in . - + - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. + Asserts that the current has the specified value. - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - + The expected value + + + + Asserts that the current has the specified value. + + The expected value - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . + Zero or more objects to format using the placeholders in . - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - + - Asserts that the thrown exception contains an inner exception with the . + Asserts that the current has an attribute with the specified + and . - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. + The name of the expected attribute + The value of the expected attribute - + - Asserts that the thrown exception contains an inner exception with the . + Asserts that the current has an attribute with the specified + and . - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . + The name of the expected attribute + The value of the expected attribute - + - Asserts that the thrown exception contains an inner exception with the . + Asserts that the current has an attribute with the specified + and . - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - The parameters used when formatting the . - + - Asserts that the exception matches a particular condition. + Asserts that the current has an attribute with the specified + and . - - The condition that the exception must match. - + The name of the expected attribute + The value of the expected attribute - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Gets the exception object of the exception thrown. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element - + - Provides methods for asserting that the execution time of an satifies certain conditions. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element - + - Initializes a new instance of the class. + Asserts that the current has a direct child element with the specified + name. - The action of which the execution time must be asserted. + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the execution time of the operation does not exceed a specified amount of time. + Asserts that the current has a direct child element with the specified + name. - - The maximum allowed duration. - + The name of the expected child element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Provides methods for asserting that the execution time of an object member satifies certain conditions. + Returns the type of the subject the assertion applies on. - - + - Initializes a new instance of the class. + Extension methods on to allow for a more fluent way of specifying a . - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. + + Instead of
+
+ new DateTime(2011, 3, 10)
+
+ you can write 3.March(2011)
+
+ Or even
+
+ 3.March(2011).At(09, 30) +
+
- + - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. + Returns a new value for the specified and + in the month January. - + - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. + Returns a new value for the specified and + in the month February. - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns a new value for the specified and + in the month March. - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns a new value for the specified and + in the month April. - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Returns a string that represents the current object. + Returns a new value for the specified and + in the month May. - - A string that represents the current object. - - 2 - + - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. + Returns a new value for the specified and + in the month June. - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns a new value for the specified and + in the month July. - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Returns a string that represents the current object. + Returns a new value for the specified and + in the month August. - - A string that represents the current object. - - 2 - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Returns a new value for the specified and + in the month September. - + - Applies a step as part of the task to compare two objects for structural equality. + Returns a new value for the specified and + in the month October. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Returns a new value for the specified and + in the month November. - + - Applies a step as part of the task to compare two objects for structural equality. + Returns a new value for the specified and + in the month December. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - + - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. + Returns a new value for the specified and . - The type of the subject. - + - Defines how a subject's property is compared for equality with the same property of the expectation. + Returns a new value for the specified and time with the specified + , and optionally . - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - + - Defines how a subject's property is compared for equality with the same property of the expectation. + Returns a new value that is the current before the + specified . - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - + - Provides the required information for executing an equality assertion between a subject and an expectation. + Returns a new value that is the current after the + specified . - The type of the subject. - + - Gets the of the property that returned the current object, or null if the current - object represents the root object. + Contains a number of methods to assert that a nullable is in the expected state. + + You can use the for a more fluent way of specifying a . + - + - Gets the value of the + Contains a number of methods to assert that a nullable is in the expected state. - + - Gets the value of the expectation object that was matched with the subject using a . + Asserts that the time difference of the current is greater than zero. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + + Asserts that the time difference of the current is less than zero. + + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. -
+ + + Zero or more objects to format using the placeholders in . +
- + - Zero or more objects to format using the placeholders in . + Asserts that the time difference of the current is equal to the + specified time. + The expected time difference + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Selection rule that removes a particular property from the structural comparison based on a predicate. + Asserts that the time difference of the current is not equal to the + specified time. + The unexpected time difference + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Asserts that the time difference of the current is less than the + specified time. - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - + The time difference to which the current value will be compared + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a string that represents the current object. + Asserts that the time difference of the current is less than or equal to the + specified time. - - A string that represents the current object. - - 2 + The time difference to which the current value will be compared + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Provides details about the subject's root or nested property. + Asserts that the time difference of the current is greater than the + specified time. + The time difference to which the current value will be compared + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the of the property that returned the current object, or null if the current - object represents the root object. + Asserts that the time difference of the current is greater than or equal to the + specified time. + The time difference to which the current value will be compared + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the full path from the root object until the current object separated by dots. + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a display-friendly representation of the . + Gets the object which value is being asserted. - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Asserts that a nullable value is not null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the run-time type of the current object. + Asserts that a nullable value is null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Represents a selection context of a nested property + Asserts that the value is equal to the specified value. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the of the property that returned the current object, or - null if the current object represents the root object. + Extension methods on to allow for a more fluent way of specifying a . + + Instead of
+
+ TimeSpan.FromHours(12)
+
+ you can write
+
+ 12.Hours()
+
+ Or even
+
+ 12.Hours().And(30.Minutes()). +
+
- + - Gets the full path from the root object until the current property, separated by dots. + Returns a based on a number of milliseconds. - + - Gets a textual description of the current property based on the . + Returns a based on a number of seconds. - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Returns a based on a number of seconds, and add the specified + . - + - Gets the run-time type of the current object. + Returns a based on a number of minutes. - + - Is responsible for the exact run-time behavior of a structural equality comparison. + Returns a based on a number of minutes, and add the specified + . - The type of the subject. - + - Provides the run-time details of the class. + Returns a based on a number of hours. - + - Gets an ordered collection of selection rules that define what properties are included. + Returns a based on a number of hours, and add the specified + . - + - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. + Returns a based on a number of days. - + - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. + Returns a based on a number of days, and add the specified + . - + - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. + Convenience method for chaining multiple calls to the methods provided by this class. + + 23.Hours().And(59.Minutes()) + - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Contains a number of methods to assert that a is in the expected state. - + - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. + Asserts that the value is false. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds all public properties of the subject as far as they are defined on the declared type. + Asserts that the value is true. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds all public properties of the subject based on its run-time type rather than its declared type. + Asserts that the value is equal to the specified value. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. + Gets the object which value is being asserted. - + - Requires the expectation to have properties which are equally named to properties on the subject. + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - + - Excludes the specified (nested) property from the structural equality check. + Records activity for a single event. - + - Excludes a (nested) property based on a predicate from the structural equality check. + Records raised events for one event on one object - + - Includes the specified property in the equality check. + Store information about a raised event - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - + Parameters the event was raised with - + - Causes the structural equality check to include nested collections and complex types. + The object events are recorded from - + - Causes the structural equality check to ignore any cyclic references. + The name of the event that's recorded - - By default, cyclic references within the object graph will cause an exception to be thrown. - - + - Clears all selection rules, including those that were added by default. + The object events are recorded from + The name of the event that's recorded - + - Clears all matching rules, including those that were added by default. + Enumerate raised events - + - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Enumerate raised events + - + - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Called by the auto-generated IL, to record information about a raised event. - + - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + The object events are recorded from - + - Returns a string that represents the current object. + The name of the event that's recorded - - A string that represents the current object. - - 2 - + - Gets an ordered collection of selection rules that define what properties are included. + Static methods that aid in generic event subscription - + - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. + Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder + when invoked. - + - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. + Finds the Return Type of a Delegate. - + - Gets value indicating whether the equality check will include nested collections and complex types. + Returns an Array of Types that make up a delegate's parameter signature. - + - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + Returns an array of types appended with an EventRecorder reference at the beginning. - + - Defines additional overrides when used with + Returns T/F Dependent on a Type Being a Delegate. - + - Allows overriding the way structural equality is applied to (nested) objects of tyoe + Returns the MethodInfo for the Delegate's "Invoke" Method. - + - Allows overriding the way structural equality is applied to particular properties. + This class is used to store data about an intercepted event - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Default constructor stores the parameters the event was raised with - + - Applies a step as part of the task to compare two objects for structural equality. + Parameters for the event - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - + - Indication of how cyclic references should be handled when validating equality of nested properties. + Simple dictionary that uses a to the event source as the key. + This should ensure the Garbage Collector can still clean-up the event source object. - + - Cyclic references will be ignored. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Cyclic references will result in an exception. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Determines whether this instance can handle the specified value. + The value. + + true if this instance can handle the specified value; otherwise, false. + - + - Applies a step as part of the task to compare two objects for structural equality. + Returns a that represents this instance. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Applies a step as part of the task to compare two objects for structural equality. + Returns a that represents this instance. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Selection rule that removes a particular property from the structural comparison. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns a that represents this instance. - - A collection of properties that was prepopulated by other selection rules. Can be empty. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. - The collection of properties after applying this rule. Can contain less or more than was passed in. + A that represents this instance. - + - Returns a that represents this instance. + Provides services for formatting an object being used in an assertion in a human readable format. - - A that represents this instance. - - + - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. + A list of objects responsible for formatting the objects represented by placeholders. - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Returns a human-readable representation of a particular object. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. + The value for which to create a . + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. - - The dotted path from the root object to the current property. Will never be null. + + Indicates whether the formatter should use line breaks when the specific supports it. - Returns the of the property with which to compare the subject with, or null - if no match was found. + A that represents this instance. - + - Selection rule that includes a particular property in the structural comparison. + Ensures a custom formatter is included in the chain, just before the default formatter is executed. - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Indicates whether the current can handle the specified . - - A collection of properties that was prepopulated by other selection rules. Can be empty. + The value for which to create a . - The collection of properties after applying this rule. Can contain less or more than was passed in. + true if the current can handle the specified value; otherwise, false. - + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + A that represents this instance. - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - + - Gets the property of the that was matched against the , - or null if is true. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Gets the value of the . + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Zero or more objects to format using the placeholders in . + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets a verification object associated with the current and . + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Gets a value indicating whether the current context represents the root of the object graph. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets the value of the + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Requires the expectation object to have a property with the exact same name. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Returns a that represents this instance. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. + The value for which to create a . + + + A collection of objects that - - The dotted path from the root object to the current property. Will never be null. + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. - Returns the of the property with which to compare the subject with, or null - if no match was found. + A that represents this instance. - + - Returns a string that represents the current object. + Indicates whether the current can handle the specified . + The value for which to create a . - A string that represents the current object. + true if the current can handle the specified value; otherwise, false. - 2 - + - Provides methods for selecting one or more properties of an object and comparing them with another object. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Includes all properties of when comparing the subject with another object using . + Contains a number of methods to assert that an is in the expected state. - + - Includes all properties of including those of the run-time type when comparing the subject - with another object using . + Asserts that the number of items in the collection matches the supplied amount. + The expected number of items in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. + Asserts that the number of items in the collection matches a condition stated by the . + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Perform recursive property comparison of the child properties for objects that are of incompatible type. + Asserts that the current collection contains the specified object. Elements are compared + using their implementation. - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. + An object, or of objects that are expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - + - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. + Contains a number of methods to assert that a is in the expected state. - A single property expression to exclude. - Optional list of additional property expressions to exclude. + + You can use the for a more fluent way of specifying a . + - + - Excludes the properties specified by the from the comparison. + Asserts that the current is exactly equal to the value. - A single property expression to exclude. - Optional list of additional property expressions to exclude. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. + Asserts that the current is not equal to the value. - A single property expression to include. - Optional list of additional property expressions to include. + The unexpected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the previously selected properties of have the same value as the equally named - properties of . + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. - The object to compare the current object with - Property values are considered equal if, after converting them to the requested type, calling - returns true. + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -4721,291 +5302,466 @@ Zero or more objects to format using the placeholders in . - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Asserts that the current is before the specified value. + The that the current value is expected to be before. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Applies a step as part of the task to compare two objects for structural equality. + Asserts that the current is either on, or before the specified value. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - + The that the current value is expected to be on or before. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the of the property that returned the current object, or - null if the current object represents the root object. + Asserts that the current is after the specified value. + The that the current value is expected to be after. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the full path from the root object until the current property, separated by dots. + Asserts that the current is either on, or after the specified value. + The that the current value is expected to be on or after. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a textual description of the current property based on the . + Asserts that the current has the year. + The expected year of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the value of the + Asserts that the current has the month. + The expected month of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the property of the that was matched against the , - or null if is true. + Asserts that the current has the day. + The expected day of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the value of the . + Asserts that the current has the hour. + The expected hour of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + Asserts that the current has the minute. + The expected minutes of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Zero or more objects to format using the placeholders in . + Asserts that the current has the second. + The expected seconds of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a value indicating whether the current context represents the root of the object graph. + Returns a object that can be used to assert that the current + exceeds the specified compared to another . + + The amount of time that the current should exceed compared to another . + - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Returns a object that can be used to assert that the current + is equal to or exceeds the specified compared to another . + + The amount of time that the current should be equal or exceed compared to + another . + - + - Gets the run-time type of the current object. + Returns a object that can be used to assert that the current + differs exactly the specified compared to another . + + The amount of time that the current should differ exactly compared to another . + - + - Gets a verification object associated with the current and . + Returns a object that can be used to assert that the current + is within the specified compared to another . + + The amount of time that the current should be within another . + - + - Is responsible for validating the equality of one or more properties of a subject with another object. + Returns a object that can be used to assert that the current + differs at maximum the specified compared to another . + + The maximum amount of time that the current should differ compared to another . + - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Gets the object which value is being asserted. - + - Applies a step as part of the task to compare two objects for structural equality. + Contains a number of methods to assert that an is in the correct state. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - + - Finds a property of the expectation with the exact same name, but doesn't require it. + Asserts that the thrown exception has a message that matches + depending on the specified matching mode. + + The expected message of the exception. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Asserts that the thrown exception has a message that matches + depending on the specified matching mode. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. + + The expected message of the exception. + + + Determines how the expected message is compared with the actual message. - - The expectation object for which a matching property must be returned. Can never be null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - The dotted path from the root object to the current property. Will never be null. + + Zero or more objects to format using the placeholders in . - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - + - Returns a string that represents the current object. + Asserts that the thrown exception contains an inner exception of type . - - A string that represents the current object. - - 2 + The expected type of the inner exception. - + - Extension methods on to allow for a more fluent way of specifying a . + Asserts that the thrown exception contains an inner exception of type . - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- + The expected type of the inner exception. + The reason why the inner exception should be of the supplied type. + The parameters used when formatting the .
- + - Returns a based on a number of milliseconds. + Asserts that the thrown exception contains an inner exception with the . + The expected message of the inner exception. + Determines how the expected message is compared with the actual message. - + - Returns a based on a number of seconds. + Asserts that the thrown exception contains an inner exception with the . + The expected message of the inner exception. + + The reason why the message of the inner exception should match . + + The parameters used when formatting the . - + - Returns a based on a number of seconds, and add the specified - . + Asserts that the thrown exception contains an inner exception with the . + The expected message of the inner exception. + Determines how the expected message is compared with the actual message. + + The reason why the message of the inner exception should match . + + The parameters used when formatting the . - + - Returns a based on a number of minutes. + Asserts that the exception matches a particular condition. + + The condition that the exception must match. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns a based on a number of minutes, and add the specified - . + Gets the exception object of the exception thrown. - + - Returns a based on a number of hours. + Returns the type of the subject the assertion applies on. - + - Returns a based on a number of hours, and add the specified - . + Contains a number of methods to assert that a nullable is in the expected state. - + - Returns a based on a number of days. + Asserts that a nullable boolean value is not null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a based on a number of days, and add the specified - . + Asserts that a nullable boolean value is null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Convenience method for chaining multiple calls to the methods provided by this class. + Asserts that the value is equal to the specified value. - - 23.Hours().And(59.Minutes()) - + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Extension methods for getting method and property selectors for a type. + Asserts that the value is not false. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns the types that are visible outside the specified . + Asserts that the value is not true. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a method selector for the current . + Contains a number of methods to assert that a nullable is in the expected state. + + You can use the for a more fluent way of specifying a . + - + - Returns a method selector for the current . + Asserts that a nullable value is not null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a property selector for the current . + Asserts that a nullable value is null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a property selector for the current . + Asserts that the value is equal to the specified value. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Static class that allows for a 'fluent' selection of the types from an . + Contains a number of methods to assert that an is in the expected state. - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
- + - Returns a for selecting the types that are visible outside the - specified . + Asserts that an object equals another object using its implementation. - The assembly from which to select the types. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains assertions for the objects returned by the parent . + Asserts that an object does not equal another object using it's method. + The unexpected value + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Initializes a new instance of the class. + Asserts that an object reference refers to the exact same object as another object reference. - The method to assert. + The expected object + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Initializes a new instance of the class. + Asserts that an object reference refers to a different object than another object reference refers to. - The methods to assert. + The unexpected object + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Asserts that the selected methods are virtual. + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. A formatted phrase as is supported by explaining why the assertion @@ -5015,9 +5771,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the selected methods are decorated with the specified . + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. A formatted phrase as is supported by explaining why the assertion @@ -5027,97 +5784,134 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains + the values of all properties. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Allows for fluent selection of methods of a type through reflection. + Returns the type of the subject the assertion applies on. - + - Initializes a new instance of the class. + Provides methods for selecting one or more properties of an object and comparing them with another object. - The type from which to select methods. - + - Initializes a new instance of the class. + Includes all properties of when comparing the subject with another object using . - The types from which to select methods. - + - Only select the methods that return the specified type + Includes all properties of including those of the run-time type when comparing the subject + with another object using . - + - Only select the methods that are decorated with an attribute of the specified type. + Includes all properties of when comparing the subject with another object using , + except those that the other object does not have. - + - The resulting objects. + Perform recursive property comparison of the child properties for objects that are of incompatible type. + + Indication of how cyclic references in the nested properties should be handled. By default this will result in an + exception, but if is specified, cyclic references will just be ignored. + - + - Determines whether the specified method has a special name (like properties and events). + Includes all properties of when comparing the subject with another object using , + except those specified using a property expression. + A single property expression to exclude. + Optional list of additional property expressions to exclude. - + - Returns an enumerator that iterates through the collection. + Excludes the properties specified by the from the comparison. - - A that can be used to iterate through the collection. - - 1 + A single property expression to exclude. + Optional list of additional property expressions to exclude. - + - Returns an enumerator that iterates through a collection. + Includes only those properties of when comparing the subject with another object using + that were specified using a property expression. - - An object that can be used to iterate through the collection. - - 2 + A single property expression to include. + Optional list of additional property expressions to include. - + - Only select the methods that are public or internal. + Asserts that the previously selected properties of have the same value as the equally named + properties of . + The object to compare the current object with + + Property values are considered equal if, after converting them to the requested type, calling + returns true. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Only select the methods without a return value + Contains a number of methods to assert that a is in the expected state. - + - Contains assertions for the objects returned by the parent . + Initializes a new instance of the class. - + - Initializes a new instance of the class, for a single . + Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - The property to assert. + The expected string. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class, for a number of objects. + Asserts that the is one of the specified . - The properties to assert. + + The values that are valid. + - + - Asserts that the selected properties are virtual. + Asserts that the is one of the specified . + + The values that are valid. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5126,10 +5920,14 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the selected methods are decorated with the specified . + Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with + the exception of the casing. + + The string that the subject is expected to be equivalent to. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5138,80 +5936,87 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - + - Returns an enumerator that iterates through the collection. + Asserts that a string is not exactly the same as the specified , + including any leading or trailing whitespace, with the exception of the casing. - - A that can be used to iterate through the collection. - - 1 + The string that the subject is not expected to be equivalent to. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns an enumerator that iterates through a collection. + Asserts that a string matches a wildcard pattern. - - An object that can be used to iterate through the collection. - - 2 + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Only select the properties that have a public or internal getter. + Asserts that a string does not match a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains a number of methods to assert that a meets certain expectations. + Asserts that a string matches a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Asserts that a string does not match a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current type is equal to the specified type. + Asserts that a string matches a regular expression. + + The regular expression with which the subject is matched. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5220,11 +6025,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current type is equal to the specified type. + Asserts that a string does not match a regular expression. - The expected type + + The regular expression with which the subject is matched. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5233,20 +6040,12 @@ Zero or more objects to format using the placeholders in . - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - + - Asserts that the current type is not equal to the specified type. + Asserts that a string starts exactly with the specified value, + including the casing and any leading or trailing whitespace. + The string that the subject is expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5255,11 +6054,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current type is not equal to the specified type. + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. - The unexpected type + The string that the subject is not expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5268,10 +6068,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with the specified . + Asserts that a string starts with the specified , + including any leading or trailing whitespace, with the exception of the casing. + The string that the subject is expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5280,14 +6082,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with an attribute of type - that matches the specified . + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. - - The predicate that the attribute must match. - + The string that the subject is not expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5296,79 +6096,98 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - + - Determines whether the namespace of type is exactly . + Asserts that a string ends exactly with the specified , + including the casing and any leading or trailing whitespace. + The string that the subject is expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Determines whether the namespace of type is starts with . + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns an enumerator that iterates through the collection. + Asserts that a string ends with the specified , + including any leading or trailing whitespace, with the exception of the casing. - - A that can be used to iterate through the collection. - - 1 + The string that the subject is expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns an enumerator that iterates through a collection. + Asserts that a string does not end with the specified , + including any leading or trailing whitespace, with the exception of the casing. - - An object that can be used to iterate through the collection. - - 2 + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains a number of methods to assert that all s in a - meet certain expectations. + Asserts that a string contains another (fragment of a) string. + + The (fragement of a) string that the current string should contain. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Asserts that a string contains the specified , + including any leading or trailing whitespace, with the exception of the casing. + The string that the subject is expected to contain. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current is decorated with the specified . + Asserts that a string does not contain another (fragment of a) string. + + The (fragement of a) string that the current string should not contain. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5377,14 +6196,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with an attribute of type - that matches the specified . + Asserts that a string does not contain the specified string, + including any leading or trailing whitespace, with the exception of the casing. - - The predicate that the attribute must match. - + The string that the subject is not expected to contain. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5393,69 +6210,106 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that a string is . + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains a number of methods to assert that an is in the expected state. + Asserts that a string is not . + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Asserts that a string has the specified length. + The expected length of the string + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current equals the attribute. + Asserts that a string is neither null nor . - The expected attribute + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Asserts that the current equals the attribute. + Asserts that a string is either null or . - The expected attribute - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the current does not equal the attribute, - using its implementation. + Asserts that a string is neither null nor nor white space - The unexpected attribute + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Asserts that the current does not equal the attribute, - using its implementation. + Asserts that a string is neither null nor nor white space - The unexpected attribute - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the is null. + Asserts that a string is either null or or white space + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Asserts that the is null. + Asserts that a string is either null or or white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -5465,15 +6319,27 @@ Zero or more values to use for filling in any compatible placeholders. - + + + Returns the type of the subject the assertion applies on. + + + - Asserts that the is not null. + Contains a number of methods to assert that two objects differ in the expected way. + + You can use the and for a more fluent + way of specifying a or a . + - + - Asserts that the is not null. + Asserts that a occurs a specified amount of time before another . + + The to compare the subject with. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not start with the word because, it is prepended to the message. @@ -5482,53 +6348,40 @@ Zero or more values to use for filling in any compatible placeholders. - - - Asserts that the current has the specified value. - - The expected value - - + - Asserts that the current has the specified value. + Asserts that a occurs a specified amount of time after another . - The expected value + + The to compare the subject with. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - - - Gets the object which value is being asserted. - - - + - Contains a number of methods to assert that an is in the expected state. + Provides the logic and the display text for a . - + - Initializes a new instance of the class. + Contains a number of methods to assert that a meets certain expectations. - + - Asserts that the current equals the document, - using its implementation. + Initializes a new instance of the class. - The expected document - + - Asserts that the current equals the document, - using its implementation. + Asserts that the current type is equal to the specified type. - The expected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5537,19 +6390,11 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - + - Asserts that the current does not equal the document, - using its implementation. + Asserts that the current type is equal to the specified type. - The unexpected document + The expected type A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5558,53 +6403,45 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Creates an error message in case the specifed type differs from the + type. + + An empty if the two specified types are the same, or an error message that describes that + the two specified types are not the same. + - + - Asserts that the is null. + Asserts that the current type is not equal to the specified type. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Asserts that the is not null. - - - + - Asserts that the is not null. + Asserts that the current type is not equal to the specified type. + The unexpected type - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - + - Asserts that the current has a root element with the specified - name. + Asserts that the current is decorated with the specified . - The name of the expected root element of the current document. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5613,22 +6450,13 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - + - Asserts that the element of the current has a direct - child element with the specified name. + Asserts that the current is decorated with an attribute of type + that matches the specified . - - The name of the expected child element of the current document's Root element. + + The predicate that the attribute must match. A formatted phrase as is supported by explaining why the assertion @@ -5638,164 +6466,134 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. - + - Contains a number of methods to assert that an is in the expected state. + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - + - Initializes a new instance of the class. + Gets an object that wraps and executes a conditional or unconditional assertion. - + - Asserts that the current equals the element. + Throws a generic exception in case no other test harness is detected. - The expected element - + - Asserts that the current equals the element. + Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current does not equal the element, - using its implementation. + Throws a framework-specific exception to indicate a failing unit test. - The unexpected element - + - Asserts that the current does not equal the element, - using its implementation. + Gets a value indicating whether the corresponding test framework is currently available. - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the is null. + Throws a framework-specific exception to indicate a failing unit test. - + - Asserts that the is null. + Gets a value indicating whether the corresponding test framework is currently available. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the is not null. + Throws a framework-specific exception to indicate a failing unit test. - + - Asserts that the is not null. + Gets a value indicating whether the corresponding test framework is currently available. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the current has an attribute with the specified - and . + Represents an implicit or explicit scope within which multiple assertions can be collected. - The name of the expected attribute - The value of the expected attribute - + - Asserts that the current has an attribute with the specified - and . + Represents the phrase that can be used in as a placeholder for the reason of an assertion. - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has a direct child element with the specified - name. + Initializes a new instance of the class. - The name of the expected child element - + - Asserts that the current has a direct child element with the specified - name. + Specify the condition that must be satisfied. + + If true the assertion will be succesful. + + + + Specify the reason why you expect the condition to be true. - The name of the expected child element - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the condition should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Gets the object which value is being asserted. + Define the failure message for the assertion. + + + If the contains the text "{reason}", this will be replaced by the reason as + defined through . Only 10 are supported in combination with + a {reason}. + + The format string that represents the failure message. + Optional arguments for the + + + + Discards and returns the failures that happened up to now. - + - Contains a number of methods to assert that an asynchronous method yields the expected result. + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - + - Asserts that the current throws an exception of type . + Gets data associated with the current scope and identified by . + + + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Gets the that is being asserted. + Represents a collection of data items that are associated with an . diff --git a/dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll b/dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll new file mode 100644 index 00000000000..d35f971f323 Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.xml b/dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml similarity index 81% rename from dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.xml rename to dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml index 1e6978bb7f1..5cafcf2aaef 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/net35/FluentAssertions.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/net40/FluentAssertions.xml @@ -4,699 +4,703 @@ FluentAssertions - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - + - Gets the quoted three characters at the specified index of a string, including the index itself. + Initializes a new instance of the class. - + - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. + Contains extension methods for custom assertions in unit tests. - - - Joins a string with one or more other strings using a specified separator. + Provides extension methods for monitoring and querying events. - - Any string that is empty (including the original string) is ignored. - - + - Determines whether two objects refer to the same property. + Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow + overloads. - + - Finds the property by a case-sensitive name. + Provides methods for asserting the execution time of a method or property. + The object that exposes the method or property. + A reference to the method or property to measure the execution time of. - Returns null if no such property exists. + Returns an object for asserting that the execution time matches certain conditions. - + - Determines whether the specified method has been annotated with a specific attribute. + Provides methods for asserting the execution time of a method or property. + A reference to the method or property to measure the execution time of. - true if the specified method has attribute; otherwise, false. + Returns an object for asserting that the execution time matches certain conditions. - + - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . + Returns an object that can be used to assert the + current . - + - Indicates whether the current can handle the specified . + Returns an object that can be used to assert the + current . - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Returns an object that can be used to assert the + current . - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Forces enumerating a collection. Should be used to assert that a method that uses the + yield keyword throws a particular exception. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Forces enumerating a collection. Should be used to assert that a method that uses the + yield keyword throws a particular exception. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Returns an object that can be used to assert the + current . - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Returns an object that can be used to assert the + current . - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Marks a static method as a kind of for a particular type. + Returns an object that can be used to assert the + current nullable . - + - Contains a number of methods to assert that an yields the expected result. + Returns an object that can be used to assert the + current . - + - Asserts that the current throws an exception of type . + Returns an object that can be used to assert the + current nullable . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current does not throw an exception of type . + Returns an object that can be used to assert the + current . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current does not throw any exception. + Returns an object that can be used to assert the + current . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Gets the that is being asserted. + Returns an object that can be used to assert the + current . - + - Initializes a new instance of the class. + Returns an object that can be used to assert the + current . - + - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. + Returns an object that can be used to assert the + current . - + - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. + Returns an object that can be used to assert the + current nullable . - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns an object that can be used to assert the + current . - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns an object that can be used to assert the + current . - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Returns a string that represents the current object. + Returns an object that can be used to assert the + current nullable . - - A string that represents the current object. - - 2 - + - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. + Returns an object that can be used to assert the + current . - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns an object that can be used to assert the + current nullable . - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Returns a string that represents the current object. + Returns an object that can be used to assert the + current . - - A string that represents the current object. - - 2 - + - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. + Returns an object that can be used to assert the + current nullable . - + - Applies a step as part of the task to compare two objects for structural equality. + Returns an object that can be used to assert the + current . - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - + - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. + Returns an object that can be used to assert the + current nullable . - The type of the subject. - + - Defines how a subject's property is compared for equality with the same property of the expectation. + Returns an object that can be used to assert the + current . - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - + - Defines how a subject's property is compared for equality with the same property of the expectation. + Returns an object that can be used to assert the + current nullable . - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - + - Provides the required information for executing an equality assertion between a subject and an expectation. + Returns an object that can be used to assert the + current . - The type of the subject. - + - Gets the of the property that returned the current object, or null if the current - object represents the root object. + Returns an object that can be used to assert the + current nullable . - + - Gets the value of the + Returns an object that can be used to assert the + current . - + - Gets the value of the expectation object that was matched with the subject using a . + Returns an object that can be used to assert the + current nullable . - + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + Returns an object that can be used to assert the + current . - + - Zero or more objects to format using the placeholders in . + Returns an object that can be used to assert the + current . - + - Selection rule that removes a particular property from the structural comparison based on a predicate. + Returns an object that can be used to assert the + current nullable . - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Returns a object that can be used to assert the + current . - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - + - Returns a string that represents the current object. + Returns a object that can be used to assert the + current . - - A string that represents the current object. - - 2 - + - Provides details about the subject's root or nested property. + Returns a object that can be used to assert the current . + - + - Gets the of the property that returned the current object, or null if the current - object represents the root object. + Returns a object that can be used to assert the methods returned by the + current . + - + - Gets the full path from the root object until the current object separated by dots. + Returns a object that can be used to assert the + current . + - + - Gets a display-friendly representation of the . + Returns a object that can be used to assert the properties returned by the + current . + - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Asserts that the properties of an object matches those of another object. - + - Gets the run-time type of the current object. + Asserts that an object is equivalent to another object. + + Objects are equivalent when both object graphs have equally named properties with the same value, + irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. + The type of a collection property is ignored as long as the collection implements and all + items in the collection are structurally equal. + Notice that actual behavior is determined by the instance of the + class. + + + An optional formatted phrase as is supported by explaining why the + assertion is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Provides the run-time details of the class. + Asserts that an object is equivalent to another object. + + Objects are equivalent when both object graphs have equally named properties with the same value, + irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. + The type of a collection property is ignored as long as the collection implements and all + items in the collection are structurally equal. + + + A reference to the configuration object that can be used + to influence the way the object graphs are compared. You can also provide an alternative instance of the + class. + + + An optional formatted phrase as is supported by explaining why the + assertion is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets an ordered collection of selection rules that define what properties are included. + Safely casts the specified object to the type specified through . + + Has been introduced to allow casting objects without breaking the fluent API. + + - + - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. + Starts monitoring an object for its events. + Thrown if eventSource is Null. - + - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. + Asserts that an object has raised a particular event at least once. + The object exposing the event. + The name of the event that should have been raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. + Asserts that an object has raised a particular event at least once. + The object exposing the event. + + The name of the event that should have been raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Represents a selection context of a nested property + Asserts that an object has not raised a particular event. + The object exposing the event. + + The name of the event that should not be raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . + Asserts that an object has not raised a particular event. + The object exposing the event. + + The name of the event that should not be raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Asserts that an object has raised the event for a particular property. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets the run-time type of the current object. + Asserts that an object has raised the event for a particular property. + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Is responsible for the exact run-time behavior of a structural equality comparison. + Asserts that an object has not raised the event for a particular property. - The type of the subject. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Asserts that an object has not raised the event for a particular property. + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. + Obtains the for a particular event of the . + The object for which to get an event recorder. + The name of the event. + - + - Adds all public properties of the subject as far as they are defined on the declared type. + Asserts that all occurences of the event originated from the . - + - Adds all public properties of the subject based on its run-time type rather than its declared type. + Asserts that at least one occurrence of the event had an object matching a predicate. - + - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. + Asserts that the throws an exception. + A reference to the method or property. + + The type of the exception it should throw. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + Returns an object that allows asserting additional members of the thrown exception. + - + - Requires the expectation to have properties which are equally named to properties on the subject. + Asserts that the does not throw a particular exception. - + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Excludes the specified (nested) property from the structural equality check. + Asserts that the does not throw any exception at all. + The current method or property. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Excludes a (nested) property based on a predicate from the structural equality check. + Asserts that the throws an exception. + A reference to the method or property. + + The type of the exception it should throw. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + Returns an object that allows asserting additional members of the thrown exception. + - + - Includes the specified property in the equality check. + Asserts that the does not throw a particular exception. - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. - + - Causes the structural equality check to include nested collections and complex types. + Asserts that the does not throw any exception at all. + The current method or property. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Causes the structural equality check to ignore any cyclic references. + Contains a number of methods to assert that an is in the expected state. - - By default, cyclic references within the object graph will cause an exception to be thrown. - - + - Clears all selection rules, including those that were added by default. + Contains a number of methods to assert that a reference type object is in the expected state. - + - Clears all matching rules, including those that were added by default. + Asserts that the current object has not been initialized yet. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Asserts that the current object has been initialized. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Asserts that the object is of the specified type . + The expected type of the object. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + Asserts that the object is of the specified type . + + The type that the subject is supposed to be of. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a string that represents the current object. + Asserts that the object is assignable to a variable of type . - - A string that represents the current object. - - 2 + The type to which the object should be assignable. + The reason why the object should be assignable to the type. + The parameters used when formatting the . + An which can be used to chain assertions. - + - Gets an ordered collection of selection rules that define what properties are included. + Asserts that the is satisfied. + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. - + - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. + Asserts that the is satisfied. + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. - + - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. + Gets the object which value is being asserted. - + - Gets value indicating whether the equality check will include nested collections and complex types. + Returns the type of the subject the assertion applies on. - + - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + Asserts that the collection does not contain any items. - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Contains a number of methods to assert that an is in the expected state. - - - + - Asserts that the subject is considered equal to another object according to the implementation of . + Asserts that the collection contains at least 1 item. - - The object to pass to the subject's method. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -705,13 +709,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is not equal to another object according to its implementation of . + Asserts that the collection does not contain any duplicate items. - - The object to pass to the subject's method. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -720,13 +721,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is less than another object according to its implementation of . + Asserts that the collection does not contain any null items. - - The object to pass to the subject's method. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -735,13 +733,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is less than or equal to another object according to its implementation of . + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . - - The object to pass to the subject's method. - + A params array with the expected elements. + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -750,13 +754,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is greater than another object according to its implementation of . + Expects the current collection not to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . - - The object to pass to the subject's method. - + An with the elements that are not expected. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -765,13 +768,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the subject is greater than or equal to another object according to its implementation of . + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . - - The object to pass to the subject's method. - + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -780,19 +789,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a value is within a range. + Expects the current collection not to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - + An with the unexpected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -801,9 +803,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a nullable numeric value is not null. + Asserts that the current collection only contains items that are assignable to the type . A formatted phrase as is supported by explaining why the assertion @@ -811,90 +813,35 @@ Zero or more objects to format using the placeholders in . - + - + - Asserts that a nullable numeric value is null. + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - + - + - Contains a number of methods to assert that an is in the expected state. + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + An with the expected elements. - + - Asserts that the current dictionary has not been initialized yet with an actual dictionary. + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -903,9 +850,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary has been initialized with an actual dictionary. + Expects the current collection to have all elements in ascending order. Elements are compared + using their implementation. A formatted phrase as is supported by explaining why the assertion @@ -915,11 +863,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the number of items in the dictionary matches the supplied amount. + Expects the current collection to have all elements in descending order. Elements are compared + using their implementation. - The expected number of items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -928,11 +876,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the number of items in the dictionary matches a condition stated by a predicate. + Expects the current collection to have all elements in the specified . + Elements are compared using their implementation. + + + + + Asserts the current collection does not have all elements in ascending order. Elements are compared + using their implementation. - The predicate which must be statisfied by the amount of items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -941,9 +895,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary does not contain any items. + Asserts the current collection does not have all elements in descending order. Elements are compared + using their implementation. A formatted phrase as is supported by explaining why the assertion @@ -953,11 +908,18 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary contains at least 1 item. + Asserts the current collection does not have all elements in ascending order. Elements are compared + using their implementation. - + + + + Asserts that the collection is a subset of the . + + An with the expected superset. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -965,13 +927,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. + Asserts that the collection is not a subset of the . - The expected dictionary + An with the unexpected superset. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -980,13 +940,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. + Assert that the current collection has the same number of elements as . - The unexpected dictionary + The other collection with the same expected number of elements A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -995,12 +953,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. + Asserts that the current collection has the supplied at the + supplied . - The expected key + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1009,19 +968,11 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - + - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. + Asserts that the current collection does not contain the supplied item. - The expected keys + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1030,12 +981,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. + Asserts that the collection shares one or more items with the specified . - The unexpected key + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1044,12 +994,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. + Asserts that the collection does not share any items with the specified . - The expected value + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1058,19 +1007,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. + Returns the type of the subject the assertion applies on. - The expected values - + - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. + Contains a number of methods to assert that an is in the expectation state. - The expected values + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1079,12 +1030,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. + Asserts that the number of items in the collection matches a condition stated by the . - The unexpected value + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1093,12 +1043,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. + Asserts that two collections contain the same items in the same order, where equality is determined using a + predicate. - The expected + + The collection to compare the subject with. + + + A predicate the is used to determine whether two objects should be treated as equal. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1107,41 +1062,70 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. + Asserts that the collection contains the specified item. - The key for which to validate the value - The value to validate + The expectation item. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. + Asserts that the collection contains some extra items in addition to the original items. - The unexpected + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains at least one item that matches the predicate. + + A predicate to match the items in the collection against. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. + Asserts that the collection only contains items that match a predicate. - The key for which to validate the value - The value to validate + A predicate to match the items in the collection against. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Asserts that the collection does not contain any items that match the predicate. + + A predicate to match the items in the collection against. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Expects the current collection to contain only a single item matching the specified . + + The predictes that will be used to find the matching items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1150,20 +1134,29 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Contains a number of methods to assert that an is in the expected state. - + - Contains a number of methods to assert that a is in the correct state. + Asserts that the number of items in the dictionary matches the supplied amount. + The expected number of items. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the is . + Asserts that the number of items in the dictionary matches a condition stated by a predicate. + The predicate which must be statisfied by the amount of items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1172,9 +1165,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is not . + Asserts that the dictionary does not contain any items. A formatted phrase as is supported by explaining why the assertion @@ -1184,11 +1177,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is equal to the GUID. + Asserts that the dictionary contains at least 1 item. - The expected value to compare the actual value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1197,11 +1189,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is equal to the GUID. + Asserts that the current dictionary contains all the same key-value pairs as the + specified dictionary. Keys and values are compared using + their implementation. - The expected value to compare the actual value with. + The expected dictionary A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1210,11 +1204,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is not equal to the GUID. + Asserts the current dictionary not to contain all the same key-value pairs as the + specified dictionary. Keys and values are compared using + their implementation. - The unexpected value to compare the actual value with. + The unexpected dictionary A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1223,388 +1219,1427 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the dictionary contains the specified key. Keys are compared using + their implementation. + The expected key + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Asserts that the dictionary contains all of the specified keys. Keys are compared using + their implementation. + The expected keys - + - Applies a step as part of the task to compare two objects for structural equality. + Asserts that the dictionary contains all of the specified keys. Keys are compared using + their implementation. - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - + The expected keys + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Selection rule that removes a particular property from the structural comparison. + Asserts that the current dictionary does not contain the specified key. + Keys are compared using their implementation. + The unexpected key + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Asserts that the dictionary contains the specified value. Values are compared using + their implementation. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the dictionary contains all of the specified values. Values are compared using + their implementation. + + The expected values + + + + Asserts that the dictionary contains all of the specified values. Values are compared using + their implementation. + + The expected values + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current dictionary does not contain the specified value. + Values are compared using their implementation. + + The unexpected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current dictionary contains the specified . + Keys and values are compared using their implementation. + + The expected + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. + + The key for which to validate the value + The value to validate + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current dictionary does not contain the specified . + Keys and values are compared using their implementation. + + The unexpected + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current dictionary does not contain the specified for the + supplied . Values are compared using their implementation. + + The key for which to validate the value + The value to validate + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. + + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the number of items in the collection matches a condition stated by the . + + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current collection contains the specified object. Elements are compared + using their implementation. + + An object, or of objects that are expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Gets the active configuration, + + + + + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . + + + + + Gets or sets the assembly name to scan for custom value formatters in case + is set to . + + + + + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + + + + + Maintains the framework-specific services. + + + + + Finds the first index at which the does not match the + string anymore, including the exact casing. + + + + + Finds the first index at which the does not match the + string anymore, accounting for the specified . + + + + + Gets the quoted three characters at the specified index of a string, including the index itself. + + + + + Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. + + + + + Joins a string with one or more other strings using a specified separator. + + + Any string that is empty (including the original string) is ignored. + + + + + Changes the first character of a string to uppercase. + + + + + Determines whether two objects refer to the same property. + + + + + Finds the property by a case-sensitive name. - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. + Returns null if no such property exists. - + + + Determines whether the specified method has been annotated with a specific attribute. + + + true if the specified method has attribute; otherwise, false. + + + + + Defines the modes in which custom implementations of are detected as configured + through . + + + + + Detection is disabled. + + + + + Only custom value formatters exposed through the assembly set in + are detected. + + + + + All custom value formatters in any assembly loaded in the current will be detected. + + + + + Represents a collection of assertion results obtained through a . + + + + + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. + + + + + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. + + + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . + + + + + Gets a value indicating whether this collection contains a set without any failures at all. + + + + + Defines a step in the process of comparing two object graphs for structural equivalency. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Static methods that aid in generic event subscription + + + + + Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder + when invoked. + + + + + Finds the Return Type of a Delegate. + + + + + Returns an Array of Types that make up a delegate's parameter signature. + + + + + Returns an array of types appended with an EventRecorder reference at the beginning. + + + + + Returns T/F Dependent on a Type Being a Delegate. + + + + + Returns the MethodInfo for the Delegate's "Invoke" Method. + + + + + Records activity for a single event. + + + + + Records raised events for one event on one object + + + + + Store information about a raised event + + Parameters the event was raised with + + + + The object events are recorded from + + + + + The name of the event that's recorded + + + + + + The object events are recorded from + The name of the event that's recorded + + + + Enumerate raised events + + + + + Enumerate raised events + + + + + + Called by the auto-generated IL, to record information about a raised event. + + + + + The object events are recorded from + + + + + The name of the event that's recorded + + + + + Simple dictionary that uses a to the event source as the key. + This should ensure the Garbage Collector can still clean-up the event source object. + + + + + This class is used to store data about an intercepted event + + + + + Default constructor stores the parameters the event was raised with + + + + + Parameters for the event + + + + + Defines a strategy for handling failures in a . + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Discards and returns the failure messages that happened up to now. + + + - Returns a that represents this instance. + Will throw a combined exception for any failures have been collected since was called. - - A that represents this instance. - - + - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. + Instructs the strategy to handle a assertion failure. - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Returns the messages for the assertion failures that happened until now. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + + + + + Gets an object that wraps and executes a conditional or unconditional assertion. + + + + + Throws a generic exception in case no other test harness is detected. + + + + + Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. + + + + + Throws a framework-specific exception to indicate a failing unit test. + + + + + Gets a value indicating whether the corresponding test framework is currently available. + + + + + Throws a framework-specific exception to indicate a failing unit test. + + + + + Gets a value indicating whether the corresponding test framework is currently available. + + + + + Throws a framework-specific exception to indicate a failing unit test. + + + + + Gets a value indicating whether the corresponding test framework is currently available. + + + + + Represents an implicit or explicit scope within which multiple assertions can be collected. + + + + + Represents the phrase that can be used in as a placeholder for the reason of an assertion. + + + + + Initializes a new instance of the class. + + + + + Specify the condition that must be satisfied. + + If true the assertion will be succesful. + + + + Specify the reason why you expect the condition to be true. + + + A formatted phrase explaining why the condition should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - - The dotted path from the root object to the current property. Will never be null. + + Zero or more values to use for filling in any compatible placeholders. + + + + Define the failure message for the assertion. + + + If the contains the text "{reason}", this will be replaced by the reason as + defined through . Only 10 are supported in combination with + a {reason}. + + The format string that represents the failure message. + Optional arguments for the + + + + Discards and returns the failures that happened up to now. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Gets data associated with the current scope and identified by . + + + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. + + + + + Represents a collection of data items that are associated with an . + + + + + Custom version of ICloneable that works on all frameworks. + + + + + Creates a new object that is a copy of the current instance. + + - Returns the of the property with which to compare the subject with, or null - if no match was found. + A new object that is a copy of this instance. - + - Selection rule that includes a particular property in the structural comparison. + Extension methods on to allow for a more fluent way of specifying a . + + + Instead of
+
+ new DateTime(2011, 3, 10)
+
+ you can write 3.March(2011)
+
+ Or even
+
+ 3.March(2011).At(09, 30) +
+ +
+ + + Returns a new value for the specified and + in the month January. + + + + + Returns a new value for the specified and + in the month February. + + + + + Returns a new value for the specified and + in the month March. + + + + + Returns a new value for the specified and + in the month April. + + + + + Returns a new value for the specified and + in the month May. + + + + + Returns a new value for the specified and + in the month June. + + + + + Returns a new value for the specified and + in the month July. + + + + + Returns a new value for the specified and + in the month August. + + + + + Returns a new value for the specified and + in the month September. + + + + + Returns a new value for the specified and + in the month October. + + + + + Returns a new value for the specified and + in the month November. + + + + + Returns a new value for the specified and + in the month December. + + + + + Returns a new value for the specified and . + + + + + Returns a new value for the specified and time with the specified + , and optionally . + + + + + Returns a new value that is the current before the + specified . + + + + + Returns a new value that is the current after the + specified . + + + + + Specialized value formatter that looks for static methods in the caller's assembly marked with the + . - + - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. + Indicates whether the current can handle the specified . - - A collection of properties that was prepopulated by other selection rules. Can be empty. + The value for which to create a . - The collection of properties after applying this rule. Can contain less or more than was passed in. + true if the current can handle the specified value; otherwise, false. - + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + A that represents this instance. - + - Provides information on a particular property during an assertion for structural equality of two object graphs. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Gets the property of the that was matched against the , - or null if is true. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets the value of the . + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Zero or more objects to format using the placeholders in . + Determines whether this instance can handle the specified value. + The value. + + true if this instance can handle the specified value; otherwise, false. + - + - Gets a verification object associated with the current and . + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Gets a value indicating whether the current context represents the root of the object graph. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Gets the value of the + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Requires the expectation object to have a property with the exact same name. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Returns a that represents this instance. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. + The value for which to create a . + + + A collection of objects that - - The dotted path from the root object to the current property. Will never be null. + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. - Returns the of the property with which to compare the subject with, or null - if no match was found. + A that represents this instance. - + - Returns a string that represents the current object. + Indicates whether the current can handle the specified . + The value for which to create a . - A string that represents the current object. + true if the current can handle the specified value; otherwise, false. - 2 - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - + - Attempts to find a property on the expectation that should be compared with the - during a structural equality. + Returns a that represents this instance. - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. + The value for which to create a . + + + A collection of objects that - - The dotted path from the root object to the current property. Will never be null. + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. - Returns the of the property with which to compare the subject with, or null - if no match was found. + A that represents this instance. - + - Returns a string that represents the current object. + Provides services for formatting an object being used in an assertion in a human readable format. - - A string that represents the current object. - - 2 - + - Static class that allows for a 'fluent' selection of the types from an . + A list of objects responsible for formatting the objects represented by placeholders. - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
- + - Returns a for selecting the types that are visible outside the - specified . + Returns a human-readable representation of a particular object. - The assembly from which to select the types. + The value for which to create a . + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + Indicates whether the formatter should use line breaks when the specific supports it. + + + A that represents this instance. + - + - Contains assertions for the objects returned by the parent . + Ensures a custom formatter is included in the chain, just before the default formatter is executed. - + - Initializes a new instance of the class. + Indicates whether the current can handle the specified . - The method to assert. + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Initializes a new instance of the class. + Returns a that represents this instance. - The methods to assert. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Asserts that the selected methods are virtual. + Returns a that represents this instance. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + The value for which to create a . + + + A collection of objects that - - Zero or more objects to format using the placeholders in . + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + A that represents this instance. + - + - Asserts that the selected methods are decorated with the specified . + Indicates whether the current can handle the specified . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that - - Zero or more objects to format using the placeholders in . + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + A that represents this instance. + - + - Gets the object which value is being asserted. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Allows for fluent selection of methods of a type through reflection. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Initializes a new instance of the class. + Indicates whether the current can handle the specified . - The type from which to select methods. + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Initializes a new instance of the class. + Returns a that represents this instance. - The types from which to select methods. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Only select the methods that return the specified type + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Only select the methods that are decorated with an attribute of the specified type. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - The resulting objects. + Marks a static method as a kind of for a particular type. - + - Determines whether the specified method has a special name (like properties and events). + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Returns an enumerator that iterates through the collection. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + - A that can be used to iterate through the collection. + A that represents this instance. - 1 - + - Returns an enumerator that iterates through a collection. + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + - An object that can be used to iterate through the collection. + A that represents this instance. - 2 - + - Only select the methods that are public or internal. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Only select the methods without a return value + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Contains a number of methods to assert that a nullable is in the expected state. + Contains a number of extension methods for floating point . - + - Asserts that a nullable value is not null. + Asserts a floating point value approximates another value as close as possible. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that a nullable value is null. + Asserts a floating point value approximates another value as close as possible. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that the value is equal to the specified value. + Asserts a double value approximates another value as close as possible. - The expected value + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1613,16 +2648,17 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expected state. - - - + - Asserts that the integral number value is exactly the same as the value. + Asserts a double value approximates another value as close as possible. - The expected value. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1631,11 +2667,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the integral number value is exactly the same as the value. + Asserts a decimal value approximates another value as close as possible. - The expected value. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1644,11 +2686,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the integral number value is not the same as the value. + Asserts a decimal value approximates another value as close as possible. - The unexpected value. + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1657,23 +2705,18 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the integral number value is not the same as the value. + Contains a number of methods to assert that an is in the expected state. - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the numeric value is greater than or equal to zero. + Asserts that the subject is considered equal to another object according to the implementation of . + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1682,10 +2725,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the numeric value is less than zero. + Asserts that the subject is not equal to another object according to its implementation of . + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1694,11 +2740,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the numeric value is less than the specified value. + Asserts that the subject is less than another object according to its implementation of . - The value to compare the current numeric value with. + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1707,11 +2755,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the numeric value is less than or equal to the specified value. + Asserts that the subject is less than or equal to another object according to its implementation of . - The value to compare the current numeric value with. + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1720,11 +2770,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the numeric value is greater than the specified value. + Asserts that the subject is greater than another object according to its implementation of . - The value to compare the current numeric value with. + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1733,11 +2785,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the numeric value is greater than or equal to the specified value. + Asserts that the subject is greater than or equal to another object according to its implementation of . - The value to compare the current numeric value with. + + The object to pass to the subject's method. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1746,7 +2800,7 @@ Zero or more objects to format using the placeholders in . - + Asserts that a value is within a range. @@ -1767,21 +2821,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a value is one of the specified . + Returns the type of the subject the assertion applies on. - - The values that are valid. - - + - Asserts that a value is one of the specified . + Contains a number of methods to assert that an is in the expected state. - - The values that are valid. - + + + + Asserts that the integral number value is exactly the same as the value. + + The expected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1790,188 +2844,61 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a nullable numeric value is not null. + Asserts that the integral number value is exactly the same as the value. + The expected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that a nullable numeric value is null. + Asserts that the integral number value is not the same as the value. + The unexpected value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. + - + - Asserts that the execution time of the operation does not exceed a specified amount of time. + Asserts that the integral number value is not the same as the value. - - The maximum allowed duration. - + The unexpected value. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - + - Contains a number of extension methods for floating point . + Asserts that the numeric value is greater than or equal to zero. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the numeric value is less than zero. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1980,17 +2907,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the numeric value is less than the specified value. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1999,17 +2920,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the numeric value is less than or equal to the specified value. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2018,17 +2933,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts a floating point value approximates another value as close as possible. + Asserts that the numeric value is greater than the specified value. - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2037,27 +2946,11 @@ Zero or more objects to format using the placeholders in . - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - + - Asserts that the selected properties are virtual. + Asserts that the numeric value is greater than or equal to the specified value. + The value to compare the current numeric value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2066,10 +2959,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the selected methods are decorated with the specified . + Asserts that a value is within a range. + + Where the range is continuous or incremental depends on the actual type of the value. + + + The minimum valid value of the range. + + + The maximum valid value of the range. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2078,179 +2980,157 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - + - Gets or sets a value indicating whether the subject should not match the pattern. + Asserts that a value is one of the specified . + + The values that are valid. + - + - Gets or sets a value indicating whether the matching process should ignore any casing difference. + Asserts that a value is one of the specified . + + The values that are valid. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Extension methods for getting method and property selectors for a type. + Asserts that a nullable numeric value is not null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns the types that are visible outside the specified . + Asserts that a nullable numeric value is null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a method selector for the current . + Contains a number of methods to assert that a is in the expected state. - + - Returns a method selector for the current . + Asserts that the value is false. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a property selector for the current . + Asserts that the value is true. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a property selector for the current . + Asserts that the value is equal to the specified value. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Allows for fluent filtering a list of types. + Gets the object which value is being asserted. - + - The resulting objects. + Defines the way compares the expected exception + message with the actual one. - + - Determines whether a type is a subclass of another type, but NOT the same type. + The message must match exactly, including the casing of the characters. - + - Determines whether a type implements an interface (but is not the interface itself). + The message must match except for the casing of the characters. - + - Determines whether a type is decorated with a particular attribute. + The message must start with the exact text, including the casing of the characters.. - - - Determines whether the namespace of type is exactly . + The message must match exactly, including the casing of the characters. - + - Determines whether the namespace of type is starts with . + The message must start with the text except for the casing of the characters. - + - Returns an enumerator that iterates through the collection. + The message must contain the exact text. - - A that can be used to iterate through the collection. - - 1 - + - Returns an enumerator that iterates through a collection. + The message must contain the text except for the casing of the characters. - - An object that can be used to iterate through the collection. - - 2 - + - Contains a number of methods to assert that all s in a - meet certain expectations. + The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - + - Initializes a new instance of the class. + Contains a number of methods to assert that a is in the expected state. + + You can use the for a more fluent way of specifying a . + - + - Asserts that the current is decorated with the specified . + Asserts that the current is exactly equal to the value. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2259,14 +3139,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with an attribute of type - that matches the specified . + Asserts that the current is not equal to the value. - - The predicate that the attribute must match. - + The unexpected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2275,32 +3152,21 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - + - Asserts that the current equals the attribute. + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. - The expected attribute + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2309,19 +3175,11 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - + - Asserts that the current does not equal the attribute, - using its implementation. + Asserts that the current is before the specified value. - The unexpected attribute + The that the current value is expected to be before. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2330,51 +3188,37 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - + - Asserts that the is null. + Asserts that the current is either on, or before the specified value. + The that the current value is expected to be on or before. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Asserts that the is not null. - - - + - Asserts that the is not null. + Asserts that the current is after the specified value. + The that the current value is expected to be after. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Asserts that the current has the specified value. - - The expected value - - + - Asserts that the current has the specified value. + Asserts that the current is either on, or after the specified value. - The expected value + The that the current value is expected to be on or after. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2383,34 +3227,50 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - + - Contains a number of methods to assert that an is in the expected state. + Asserts that the current has the year. + The expected year of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Asserts that the current has the month. + The expected month of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current equals the document, - using its implementation. + Asserts that the current has the day. - The expected document + The expected day of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current equals the document, - using its implementation. + Asserts that the current has the hour. - The expected document + The expected hour of the current value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2419,19 +3279,24 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current does not equal the document, - using its implementation. + Asserts that the current has the minute. - The unexpected document + The expected minutes of the current value. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current does not equal the document, - using its implementation. + Asserts that the current has the second. - The unexpected document + The expected seconds of the current value. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2440,53 +3305,78 @@ Zero or more objects to format using the placeholders in . - + + + Returns a object that can be used to assert that the current + exceeds the specified compared to another . + + + The amount of time that the current should exceed compared to another . + + + + + Returns a object that can be used to assert that the current + is equal to or exceeds the specified compared to another . + + + The amount of time that the current should be equal or exceed compared to + another . + + + - Asserts that the is null. + Returns a object that can be used to assert that the current + differs exactly the specified compared to another . + + The amount of time that the current should differ exactly compared to another . + - + - Asserts that the is null. + Returns a object that can be used to assert that the current + is within the specified compared to another . - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + + The amount of time that the current should be within another . - - Zero or more values to use for filling in any compatible placeholders. + + + + Returns a object that can be used to assert that the current + differs at maximum the specified compared to another . + + + The maximum amount of time that the current should differ compared to another . - + + + Gets the object which value is being asserted. + + + - Asserts that the is not null. + Contains a number of methods to assert that a is in the correct state. - + - Asserts that the is not null. + Asserts that the is . - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - + - Asserts that the current has a root element with the specified - name. + Asserts that the is not . - The name of the expected root element of the current document. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2495,23 +3385,24 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the element of the current has a direct - child element with the specified name. + Asserts that the is equal to the GUID. - - The name of the expected child element of the current document's Root element. + The expected value to compare the actual value with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . - + - Asserts that the element of the current has a direct - child element with the specified name. + Asserts that the is equal to the GUID. - - The name of the expected child element of the current document's Root element. - + The expected value to compare the actual value with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2520,53 +3411,58 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - + - Contains a number of methods to assert that an is in the expected state. + Asserts that the is not equal to the GUID. + The unexpected value to compare the actual value with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Gets the object which value is being asserted. - + - Asserts that the current equals the element. + Contains a number of methods to assert that a nullable is in the expected state. - The expected element - + - Asserts that the current equals the element. + Asserts that a nullable boolean value is not null. - The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that the current does not equal the element, - using its implementation. + Asserts that a nullable boolean value is null. - The unexpected element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current does not equal the element, - using its implementation. + Asserts that the value is equal to the specified value. - The unexpected element + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2575,76 +3471,67 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - + - Asserts that the is null. + Asserts that the value is not false. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. - - - - - Asserts that the is not null. + Asserts that the value is not true. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the current has an attribute with the specified - and . + Contains a number of methods to assert that a nullable is in the expected state. - The name of the expected attribute - The value of the expected attribute + + You can use the for a more fluent way of specifying a . + - + - Asserts that the current has an attribute with the specified - and . + Asserts that a nullable value is not null. - The name of the expected attribute - The value of the expected attribute A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that the current has a direct child element with the specified - name. + Asserts that a nullable value is null. - The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the current has a direct child element with the specified - name. + Asserts that the value is equal to the specified value. - The name of the expected child element + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -2653,122 +3540,47 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - + - Returns a new value for the specified and . + Contains a number of methods to assert that a nullable is in the expected state. - + - Returns a new value for the specified and time with the specified - , and optionally . + Asserts that a nullable value is not null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a new value that is the current before the - specified . + Asserts that a nullable value is null. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a new value that is the current after the - specified . + Asserts that the value is equal to the specified value. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + @@ -2891,6 +3703,31 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. @@ -2920,92 +3757,135 @@ Zero or more objects to format using the placeholders in . - + - Extension methods on to allow for a more fluent way of specifying a . + Asserts that the value is equal to the specified value. - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . +
- + - Returns a based on a number of milliseconds. + Contains a number of methods to assert that an is in the expected state. - + - Returns a based on a number of seconds. + Asserts that an object equals another object using its implementation. + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a based on a number of seconds, and add the specified - . + Asserts that an object does not equal another object using it's method. + The unexpected value + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns a based on a number of minutes. + Asserts that an object reference refers to the exact same object as another object reference. + The expected object + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns a based on a number of minutes, and add the specified - . + Asserts that an object reference refers to a different object than another object reference refers to. + The unexpected object + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Returns a based on a number of hours. + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a based on a number of hours, and add the specified - . + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a based on a number of days. + Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains + the values of all properties. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Returns a based on a number of days, and add the specified - . + Returns the type of the subject the assertion applies on. - + - Convenience method for chaining multiple calls to the methods provided by this class. + Contains a number of methods to assert that a is in the expected state. - - 23.Hours().And(59.Minutes()) - - + - Contains a number of methods to assert that a reference type object is in the expected state. + Initializes a new instance of the class. - + - Asserts that the object is of the specified type . + Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - The expected type of the object. + The expected string. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3014,47 +3894,96 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the object is assignable to a variable of type . + Asserts that the is one of the specified . - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. + + The values that are valid. + - + - Asserts that the is satisfied. + Asserts that the is one of the specified . - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + + The values that are valid. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the is satisfied. + Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with + the exception of the casing. - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + + The string that the subject is expected to be equivalent to. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets the object which value is being asserted. + Asserts that a string is not exactly the same as the specified , + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to be equivalent to. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string matches a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains a number of methods to assert that a is in the expected state. + Asserts that a string does not match a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the value is false. + Asserts that a string matches a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3063,10 +3992,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the value is true. + Asserts that a string does not match a wildcard pattern. + + The wildcard pattern with which the subject is matched, where * and ? have special meanings. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3075,11 +4007,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the value is equal to the specified value. + Asserts that a string matches a regular expression. - The expected value + + The regular expression with which the subject is matched. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3088,21 +4022,41 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that a string does not match a regular expression. + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Contains a number of methods to assert that an is in the expected state. + Asserts that a string starts exactly with the specified value, + including the casing and any leading or trailing whitespace. + The string that the subject is expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Asserts that the number of items in the collection matches the supplied amount. + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. - The expected number of items in the collection. + The string that the subject is not expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3111,11 +4065,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the number of items in the collection matches a condition stated by the . + Asserts that a string starts with the specified , + including any leading or trailing whitespace, with the exception of the casing. - A predicate that yields the number of items that is expected to be in the collection. + The string that the subject is expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3124,10 +4079,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not contain any items. + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. + The string that the subject is not expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3136,10 +4093,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection contains at least 1 item. + Asserts that a string ends exactly with the specified , + including the casing and any leading or trailing whitespace. + The string that the subject is expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3148,10 +4107,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not contain any duplicate items. + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. + The string that the subject is not expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3160,10 +4121,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not contain any null items. + Asserts that a string ends with the specified , + including any leading or trailing whitespace, with the exception of the casing. + The string that the subject is expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3172,19 +4135,27 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Asserts that a string does not end with the specified , + including any leading or trailing whitespace, with the exception of the casing. - A params array with the expected elements. + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Asserts that a string contains another (fragment of a) string. - An with the expected elements. + + The (fragement of a) string that the current string should contain. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3193,12 +4164,12 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Asserts that a string contains the specified , + including any leading or trailing whitespace, with the exception of the casing. - An with the elements that are not expected. + The string that the subject is expected to contain. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3207,19 +4178,27 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . + Asserts that a string does not contain another (fragment of a) string. - A params array with the expected elements. + + The (fragement of a) string that the current string should not contain. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . + Asserts that a string does not contain the specified string, + including any leading or trailing whitespace, with the exception of the casing. - An with the expected elements. + The string that the subject is not expected to contain. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3228,12 +4207,10 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . + Asserts that a string is . - An with the unexpected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3242,9 +4219,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection only contains items that are assignable to the type . + Asserts that a string is not . A formatted phrase as is supported by explaining why the assertion @@ -3254,12 +4231,11 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. + Asserts that a string has the specified length. - An with the expected elements. + The expected length of the string A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3268,109 +4244,151 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. + Asserts that a string is neither null nor . - An with the expected elements. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + - + - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. + Asserts that a string is either null or . - An with the expected elements. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. + Asserts that a string is neither null nor nor white space - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. + Asserts that a string is neither null nor nor white space - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. + Asserts that a string is either null or or white space + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Asserts that a string is either null or or white space + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Returns the type of the subject the assertion applies on. - + - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. + Dedicated class for comparing two strings and generating consistent error messages. + + + + + Gets or sets a value indicating whether the subject should not match the pattern. + + + + + Gets or sets a value indicating whether the matching process should ignore any casing difference. + + + + + Contains a number of methods to assert that two objects differ in the expected way. + + + You can use the and for a more fluent + way of specifying a or a . + + + + + Asserts that a occurs a specified amount of time before another . + + The to compare the subject with. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. + Asserts that a occurs a specified amount of time after another . + + The to compare the subject with. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. + Provides the logic and the display text for a . - + - Asserts that the collection is a subset of the . + Contains a number of methods to assert that an yields the expected result. - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the collection is not a subset of the . + Asserts that the current throws an exception of type . - An with the unexpected superset. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3379,11 +4397,10 @@ Zero or more objects to format using the placeholders in . - + - Assert that the current collection has the same number of elements as . + Asserts that the current does not throw an exception of type . - The other collection with the same expected number of elements A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3392,9 +4409,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current does not throw any exception. A formatted phrase as is supported by explaining why the assertion @@ -3404,170 +4421,135 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Returns the type of the subject the assertion applies on. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current collection has the supplied at the - supplied . + Contains a number of methods to assert that an is in the correct state. - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current collection does not contain the supplied item. + Asserts that the thrown exception has a message that matches + depending on the specified matching mode. - The element that is not expected to be in the collection + + The expected message of the exception. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . + Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Asserts that the thrown exception has a message that matches + depending on the specified matching mode. - The with the expected shared items. + + The expected message of the exception. + + + Determines how the expected message is compared with the actual message. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more objects to format using the placeholders in . + Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the thrown exception contains an inner exception of type . - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The expected type of the inner exception. - + - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + Asserts that the thrown exception contains an inner exception of type . + The expected type of the inner exception. + The reason why the inner exception should be of the supplied type. + The parameters used when formatting the . - + - Provides extension methods for monitoring and querying events. + Asserts that the thrown exception contains an inner exception with the . + The expected message of the inner exception. + Determines how the expected message is compared with the actual message. - + - Starts monitoring an object for its events. + Asserts that the thrown exception contains an inner exception with the . - Thrown if eventSource is Null. + The expected message of the inner exception. + + The reason why the message of the inner exception should match . + + The parameters used when formatting the . - + - Asserts that an object has raised a particular event at least once. + Asserts that the thrown exception contains an inner exception with the . - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - + The expected message of the inner exception. + Determines how the expected message is compared with the actual message. + + The reason why the message of the inner exception should match . + + The parameters used when formatting the . - + - Asserts that an object has raised a particular event at least once. + Asserts that the exception matches a particular condition. - The object exposing the event. - - The name of the event that should have been raised. + + The condition that the exception must match. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more values to use for filling in any compatible placeholders. + Zero or more values to use for filling in any compatible placeholders. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Gets the exception object of the exception thrown. - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Returns the type of the subject the assertion applies on. - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. + Provides methods for asserting that the execution time of an satifies certain conditions. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. + Initializes a new instance of the class. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. + The action of which the execution time must be asserted. + + + + Asserts that the execution time of the operation does not exceed a specified amount of time. + + + The maximum allowed duration. A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3576,1017 +4558,858 @@ Zero or more values to use for filling in any compatible placeholders. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Provides methods for asserting that the execution time of an object member satifies certain conditions. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - + - + - Asserts that an object has not raised the event for a particular property. + Initializes a new instance of the class. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. + The object that exposes the method or property. + A reference to the method or property to measure the execution time of. + + + + Selection rule that adds all public properties of the subject as far as they are defined on the declared + type. + + + + + Represents a rule that defines which properties of the subject-under-test to include while comparing + two objects for structural equality. + + + + + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + Type info about the subject. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Asserts that all occurences of the event originated from the . + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - Records activity for a single event. + Selection rule that adds all public properties of the subject based on its run-time type rather than its + declared type. - + - Records raised events for one event on one object + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Store information about a raised event + Returns a string that represents the current object. - Parameters the event was raised with + + A string that represents the current object. + + 2 - + - The object events are recorded from + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - The name of the event that's recorded + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + + General purpose implementation of that uses a predicate to determine whether + this rule applies to a particular property and executes an action to assert equality. - The object events are recorded from - The name of the event that's recorded + The type of the subject. - + - Enumerate raised events + Defines how a subject's property is compared for equality with the same property of the expectation. + + Provides details about the subject's property. + + + The value of the subject's property. + + + The value of a property on expectation object that was identified + + + Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. + Returns false if this rule doesn't support the subject's type. + Throws if the rule did support the data type but assertion fails. + - + - Enumerate raised events + Defines how a subject's property is compared for equality with the same property of the expectation. - + + Provides details about the subject's property. + + + The value of the subject's property. + + + The value of a property on expectation object that was identified + + + Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. + Returns false if this rule doesn't support the subject's type. + Throws if the rule did support the data type but assertion fails. + - + - Called by the auto-generated IL, to record information about a raised event. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - The object events are recorded from + Provides the required information for executing an equality assertion between a subject and an expectation. + The type of the subject. - + - The name of the event that's recorded + Gets the of the property that returned the current object, or null if the current + object represents the root object. - + - Static methods that aid in generic event subscription + Gets the value of the - + - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. + Gets the value of the expectation object that was matched with the subject using a . - + - Finds the Return Type of a Delegate. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - + - Returns an Array of Types that make up a delegate's parameter signature. + Zero or more objects to format using the placeholders in . - + - Returns an array of types appended with an EventRecorder reference at the beginning. + Selection rule that removes a particular property from the structural comparison based on a predicate. - + - Returns T/F Dependent on a Type Being a Delegate. + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Returns the MethodInfo for the Delegate's "Invoke" Method. + Returns a string that represents the current object. + + A string that represents the current object. + + 2 - + - This class is used to store data about an intercepted event + Provides details about the subject's root or nested property. - + - Default constructor stores the parameters the event was raised with + Gets the of the property that returned the current object, or null if the current + object represents the root object. - + - Parameters for the event + Gets the full path from the root object until the current object separated by dots. - + - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. + Gets a display-friendly representation of the . - + - Indicates whether the current can handle the specified . + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets the run-time type of the current object. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Determines whether this instance can handle the specified value. + Represents a selection context of a nested property - The value. - - true if this instance can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets the of the property that returned the current object, or + null if the current object represents the root object. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets the full path from the root object until the current property, separated by dots. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets a textual description of the current property based on the . - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets the run-time type of the current object. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Provides services for formatting an object being used in an assertion in a human readable format. + Is responsible for the exact run-time behavior of a structural equality comparison. + The type of the subject. - + - A list of objects responsible for formatting the objects represented by placeholders. + Provides the run-time details of the class. - + - Returns a human-readable representation of a particular object. + Gets an ordered collection of selection rules that define what properties are included. - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets an ordered collection of matching rules that determine which subject properties are matched with which + expectation properties. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with + expectation properties. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects + or collections. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Adds all public properties of the subject as far as they are defined on the declared type. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Indicates whether the current can handle the specified . + Adds all public properties of the subject based on its run-time type rather than its declared type. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Tries to match the properties of the subject with equally named properties on the expectation. Ignores those + properties that don't exist on the expectation. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Returns a that represents this instance. + Requires the expectation to have properties which are equally named to properties on the subject. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - + - + - Indicates whether the current can handle the specified . + Excludes the specified (nested) property from the structural equality check. - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - + - Returns a that represents this instance. + Excludes a (nested) property based on a predicate from the structural equality check. - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - + - Contains a number of methods to assert that an is in the expectation state. + Includes the specified property in the equality check. + + This overrides the default behavior of including all declared properties. + - + + + The assertion to execute when the predicate is met. + + + - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. + Causes the structural equality check to include nested collections and complex types. - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the collection contains the specified item. + Causes the structural equality check to exclude nested collections and complex types. - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + Behaves similarly to the old property assertions API. + - + - Asserts that the collection contains some extra items in addition to the original items. + Causes the structural equality check to ignore any cyclic references. - An of expectation items. - Additional items that are expectation to be contained by the collection. + + By default, cyclic references within the object graph will cause an exception to be thrown. + - + - Asserts that the collection contains at least one item that matches the predicate. + Clears all selection rules, including those that were added by default. - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the collection only contains items that match a predicate. + Clears all matching rules, including those that were added by default. - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the collection does not contain any items that match the predicate. + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Expects the current collection to contain only a single item matching the specified . + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains a number of methods to assert that an is in the expected state. + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules - + - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. + Causes all collections to be compared in the order in which the items appear in the expectation. - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains extension methods for custom assertions in unit tests. + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. - + - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. - + - Provides methods for asserting the execution time of a method or property. + Returns a string that represents the current object. - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - Returns an object for asserting that the execution time matches certain conditions. + A string that represents the current object. + 2 - + - Provides methods for asserting the execution time of a method or property. + Gets an ordered collection of selection rules that define what properties are included. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - + - Returns an object that can be used to assert the - current . + Gets an ordered collection of matching rules that determine which subject properties are matched with which + expectation properties. - + - Returns an object that can be used to assert the - current . + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with + expectation properties. - + - Returns an object that can be used to assert the - current . + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. - + - Asserts that the throws an exception. + Gets value indicating whether the equality check will include nested collections and complex types. - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - + - Asserts that the does not throw a particular exception. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the does not throw any exception at all. + Defines additional overrides when used with - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. + Allows overriding the way structural equality is applied to (nested) objects of tyoe - + - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. + Allows overriding the way structural equality is applied to particular properties. + + A predicate based on the of the subject that is used to identify the property for which the + override applies. + - + - Returns an object that can be used to assert the - current . + Defines a rule that is used to determine whether the order of items in collections is relevant or not. - + - Returns an object that can be used to assert the - current . + Determines if ordering of the property refered to by the current is relevant. - + - Returns an object that can be used to assert the - current nullable . + Determines if ordering of the property refered to by the current is relevant. - + - Returns an object that can be used to assert the - current . + An ordering rule that basically states that the order of items in all collections is important. - + - Returns an object that can be used to assert the - current nullable . + Determines if ordering of the property refered to by the current is relevant. - + - Returns an object that can be used to assert the - current . + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. - + - Returns an object that can be used to assert the - current . + Determines if ordering of the property refered to by the current is relevant. - + - Returns an object that can be used to assert the - current . + Collection of s. - + - Returns an object that can be used to assert the - current . + Returns an enumerator that iterates through the collection. + + A that can be used to iterate through the collection. + + 1 - + - Returns an object that can be used to assert the - current nullable . + Returns an enumerator that iterates through a collection. + + An object that can be used to iterate through the collection. + + 2 - + - Returns an object that can be used to assert the - current . + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . - + - Returns an object that can be used to assert the - current . + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Returns an object that can be used to assert the - current nullable . + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + - Returns an object that can be used to assert the - current . + Indication of how cyclic references should be handled when validating equality of nested properties. - + - Returns an object that can be used to assert the - current nullable . + Cyclic references will be ignored. - + - Returns an object that can be used to assert the - current . + Cyclic references will result in an exception. - + - Returns an object that can be used to assert the - current nullable . + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - + - Returns an object that can be used to assert the - current . + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + - Returns an object that can be used to assert the - current nullable . + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. - + - Returns an object that can be used to assert the - current . + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Returns an object that can be used to assert the - current nullable . + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Selection rule that removes a particular property from the structural comparison. - + - Returns an object that can be used to assert the - current . + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Returns an object that can be used to assert the - current nullable . + Returns a that represents this instance. + + A that represents this instance. + - + - Returns an object that can be used to assert the - current . + Represents a rule that defines how to map the properties from the subject-under-test with the properties + on the expectation object. - + - Returns an object that can be used to assert the - current nullable . + Attempts to find a property on the expectation that should be compared with the + during a structural equality. + + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. + + + The of the subject's property for which a match must be found. Can never + be null. + + + The expectation object for which a matching property must be returned. Can never be null. + + + The dotted path from the root object to the current property. Will never be null. + + + Returns the of the property with which to compare the subject with, or null + if no match was found. + - + - Returns an object that can be used to assert the - current . + Selection rule that includes a particular property in the structural comparison. - + - Returns an object that can be used to assert the - current . + Adds or removes properties to/from the collection of subject properties that must be included while + comparing two objects for structural equality. + + A collection of properties that was prepopulated by other selection rules. Can be empty. + + The collection of properties after applying this rule. Can contain less or more than was passed in. + - + - Returns an object that can be used to assert the - current nullable . + Returns a that represents this instance. + + A that represents this instance. + - + - Returns a object that can be used to assert the - current . + Provides information on a particular property during an assertion for structural equality of two object graphs. - + - Returns a object that can be used to assert the - current . + Gets the value of the . - + - Returns a object that can be used to assert the current . + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - - + - Returns a object that can be used to assert the methods returned by the - current . + Zero or more objects to format using the placeholders in . - - + - Returns a object that can be used to assert the - current . + Gets a value indicating whether the current context represents the root of the object graph. - - + - Returns a object that can be used to assert the properties returned by the - current . + Gets the value of the - - + - Asserts that the properties of an object matches those of another object. + Requires the expectation object to have a property with the exact same name. - + - Asserts that an object is equivalent to another object. + Attempts to find a property on the expectation that should be compared with the + during a structural equality. - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. + + The of the subject's property for which a match must be found. Can never + be null. - - Zero or more objects to format using the placeholders in . + + The expectation object for which a matching property must be returned. Can never be null. + + The dotted path from the root object to the current property. Will never be null. + + + Returns the of the property with which to compare the subject with, or null + if no match was found. + - + - Asserts that an object is equivalent to another object. + Returns a string that represents the current object. - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + A string that represents the current object. + + 2 - + - Safely casts the specified object to the type specified through . + Provides methods for selecting one or more properties of an object and comparing them with another object. - - Has been introduced to allow casting objects without breaking the fluent API. - - - + - Contains a number of methods to assert that a is in the expected state. + Includes all properties of when comparing the subject with another object using . - - You can use the for a more fluent way of specifying a . - - + - Asserts that the current is exactly equal to the value. + Includes all properties of including those of the run-time type when comparing the subject + with another object using . - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is not equal to the value. + Includes all properties of when comparing the subject with another object using , + except those that the other object does not have. - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. + Perform recursive property comparison of the child properties for objects that are of incompatible type. - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . + + Indication of how cyclic references in the nested properties should be handled. By default this will result in an + exception, but if is specified, cyclic references will just be ignored. - + + + Includes all properties of when comparing the subject with another object using , + except those specified using a property expression. + + A single property expression to exclude. + Optional list of additional property expressions to exclude. + + + + Excludes the properties specified by the from the comparison. + + A single property expression to exclude. + Optional list of additional property expressions to exclude. + + + + Includes only those properties of when comparing the subject with another object using + that were specified using a property expression. + + A single property expression to include. + Optional list of additional property expressions to include. + + - Asserts that the current is before the specified value. + Asserts that the previously selected properties of have the same value as the equally named + properties of . - The that the current value is expected to be before. + The object to compare the current object with + + Property values are considered equal if, after converting them to the requested type, calling + returns true. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -4595,448 +5418,345 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is either on, or before the specified value. + Gets a value indicating whether this step can handle the current subject and/or expectation. - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current is after the specified value. + Applies a step as part of the task to compare two objects for structural equality. - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + - Asserts that the current is either on, or after the specified value. + Gets the of the property that returned the current object, or + null if the current object represents the root object. - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the year. + Gets the full path from the root object until the current property, separated by dots. - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the month. + Gets a textual description of the current property based on the . - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the day. + Gets the value of the - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the hour. + Gets the value of the . - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the minute. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the current has the second. + Zero or more objects to format using the placeholders in . - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Returns a object that can be used to assert that the current - exceeds the specified compared to another . + Gets a value indicating whether the current context represents the root of the object graph. - - The amount of time that the current should exceed compared to another . - - + - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. - - The amount of time that the current should be equal or exceed compared to - another . - - + - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . + Gets the run-time type of the current object. - - The amount of time that the current should differ exactly compared to another . - - + - Returns a object that can be used to assert that the current - is within the specified compared to another . + Is responsible for validating the equality of one or more properties of a subject with another object. - - The amount of time that the current should be within another . - - + - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . + Provides access the list of steps that are executed in the order of appearance during an equivalency test. - - The maximum amount of time that the current should differ compared to another . - - + - Gets the object which value is being asserted. + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. - + - Contains a number of methods to assert that an is in the correct state. + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. + + The behavior of a cyclic reference is determined byt he constructor + parameter. + - + - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. + Creates a new object that is a copy of the current instance. - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + + A new object that is a copy of this instance. + - + - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. + Represents an object tracked by the including it's location within an object graph. - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. + + + + Determines whether the specified is equal to the current . + + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 + + + + Serves as a hash function for a particular type. + + + A hash code for the current . + + 2 + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + + + + + Finds a property of the expectation with the exact same name, but doesn't require it. + + + + + Attempts to find a property on the expectation that should be compared with the + during a structural equality. + + + Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, + simply return null. + + + The of the subject's property for which a match must be found. Can never + be null. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + + The expectation object for which a matching property must be returned. Can never be null. - - Zero or more objects to format using the placeholders in . + + The dotted path from the root object to the current property. Will never be null. + + Returns the of the property with which to compare the subject with, or null + if no match was found. + + + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 - + - Asserts that the thrown exception contains an inner exception of type . + Extension methods on to allow for a more fluent way of specifying a . - The expected type of the inner exception. + + Instead of
+
+ TimeSpan.FromHours(12)
+
+ you can write
+
+ 12.Hours()
+
+ Or even
+
+ 12.Hours().And(30.Minutes()). +
+
- + - Asserts that the thrown exception contains an inner exception of type . + Returns a based on a number of milliseconds. - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - + - Asserts that the thrown exception contains an inner exception with the . + Returns a based on a number of seconds. - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - + - Asserts that the thrown exception contains an inner exception with the . + Returns a based on a number of seconds, and add the specified + . - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - + - Asserts that the thrown exception contains an inner exception with the . + Returns a based on a number of minutes. - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - + - Asserts that the exception matches a particular condition. + Returns a based on a number of minutes, and add the specified + . - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Gets the exception object of the exception thrown. + Returns a based on a number of hours. - + - Contains a number of methods to assert that a nullable is in the expected state. + Returns a based on a number of hours, and add the specified + . - + - Asserts that a nullable boolean value is not null. + Returns a based on a number of days. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a nullable boolean value is null. + Returns a based on a number of days, and add the specified + . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the value is equal to the specified value. + Convenience method for chaining multiple calls to the methods provided by this class. - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + + 23.Hours().And(59.Minutes()) + - + - Contains a number of methods to assert that a nullable is in the expected state. + Extension methods for getting method and property selectors for a type. - - You can use the for a more fluent way of specifying a . - - + - Asserts that a nullable value is not null. + Returns the types that are visible outside the specified . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a nullable value is null. + Returns a method selector for the current . - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the value is equal to the specified value. + Returns a method selector for the current . - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains a number of methods to assert that an is in the expected state. + Returns a property selector for the current . - + - Asserts that an object equals another object using its implementation. + Returns a property selector for the current . - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that an object does not equal another object using it's method. + Static class that allows for a 'fluent' selection of the types from an . - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + AllTypes.From(myAssembly)
+ .ThatImplement<ISomeInterface>
+ .Should()
+ .BeDecoratedWith<SomeAttribute>() +
- + - Asserts that an object reference refers to the exact same object as another object reference. + Returns a for selecting the types that are visible outside the + specified . - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + The assembly from which to select the types. - + - Asserts that an object reference refers to a different object than another object reference refers to. + Contains assertions for the objects returned by the parent . - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - + - Asserts that the object is null. + Initializes a new instance of the class. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + The method to assert. + + + + Initializes a new instance of the class. + + The methods to assert. - + - Asserts that the object is not null. + Asserts that the selected methods are virtual. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. + Asserts that the selected methods are decorated with the specified . A formatted phrase as is supported by explaining why the assertion @@ -5046,11 +5766,14 @@ Zero or more objects to format using the placeholders in . - + - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . + + The predicate that the attribute must match. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5059,146 +5782,102 @@ Zero or more objects to format using the placeholders in . - + - Provides methods for selecting one or more properties of an object and comparing them with another object. + Gets the object which value is being asserted. - + - Includes all properties of when comparing the subject with another object using . + Returns the type of the subject the assertion applies on. - + - Includes all properties of including those of the run-time type when comparing the subject - with another object using . + Allows for fluent selection of methods of a type through reflection. - + - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. + Initializes a new instance of the class. + The type from which to select methods. - + - Perform recursive property comparison of the child properties for objects that are of incompatible type. + Initializes a new instance of the class. - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - + The types from which to select methods. - + - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. + Only select the methods that return the specified type - A single property expression to exclude. - Optional list of additional property expressions to exclude. - + - Excludes the properties specified by the from the comparison. + Only select the methods that are decorated with an attribute of the specified type. - A single property expression to exclude. - Optional list of additional property expressions to exclude. - + - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. + The resulting objects. - A single property expression to include. - Optional list of additional property expressions to include. - + - Asserts that the previously selected properties of have the same value as the equally named - properties of . + Determines whether the specified method has a special name (like properties and events). - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Contains a number of methods to assert that a is in the expected state. + Returns an enumerator that iterates through the collection. + + A that can be used to iterate through the collection. + + 1 - + - Initializes a new instance of the class. + Returns an enumerator that iterates through a collection. + + An object that can be used to iterate through the collection. + + 2 - + - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. + Only select the methods that are public or internal. - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that the is one of the specified . + Only select the methods without a return value - - The values that are valid. - - + - Asserts that the is one of the specified . + Contains assertions for the objects returned by the parent . - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. + Initializes a new instance of the class, for a single . - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The property to assert. - + - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. + Initializes a new instance of the class, for a number of objects. + + The properties to assert. + + + + Asserts that the selected properties are virtual. - The string that the subject is not expected to be equivalent to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5207,13 +5886,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string matches a wildcard pattern. + Asserts that the selected properties have a setter. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5222,13 +5898,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string does not match a wildcard pattern. + Asserts that the selected methods are decorated with the specified . - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5237,13 +5910,85 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string matches a wildcard pattern. + Gets the object which value is being asserted. + + + + + Returns the type of the subject the assertion applies on. + + + + + Allows for fluent selection of properties of a type through reflection. + + + + + Initializes a new instance of the class. + + The type from which to select properties. + + + + Initializes a new instance of the class. + + The types from which to select properties. + + + + Only select the properties that are decorated with an attribute of the specified type. + + + + + Only select the properties that return the specified type + + + + + The resulting objects. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Only select the properties that have a public or internal getter. + + + + + Contains a number of methods to assert that a meets certain expectations. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current type is equal to the specified type. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5252,13 +5997,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string does not match a wildcard pattern. + Asserts that the current type is equal to the specified type. - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - + The expected type A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5267,12 +6010,20 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. + Creates an error message in case the specifed type differs from the + type. + + + An empty if the two specified types are the same, or an error message that describes that + the two specified types are not the same. + + + + + Asserts that the current type is not equal to the specified type. - The string that the subject is expected to start with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5281,12 +6032,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current type is not equal to the specified type. - The string that the subject is expected to start with. + The unexpected type A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5295,12 +6045,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. + Asserts that the current is decorated with the specified . - The string that the subject is expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5309,12 +6057,14 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current is decorated with an attribute of type + that matches the specified . - The string that the subject is expected to end with. + + The predicate that the attribute must match. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5323,13 +6073,79 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string contains another (fragment of a) string. + Returns the type of the subject the assertion applies on. + + + + + Allows for fluent filtering a list of types. + + + + + The resulting objects. + + + + + Determines whether a type is a subclass of another type, but NOT the same type. + + + + + Determines whether a type implements an interface (but is not the interface itself). + + + + + Determines whether a type is decorated with a particular attribute. + + + + + Determines whether the namespace of type is exactly . + + + + + Determines whether the namespace of type is starts with . + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Contains a number of methods to assert that all s in a + meet certain expectations. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current is decorated with the specified . - - The (fragement of a) string that the current string should contain. - A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5338,12 +6154,14 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current is decorated with an attribute of type + that matches the specified . - The string that the subject is expected to contain. + + The predicate that the attribute must match. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5352,13 +6170,32 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string does not contain another (fragment of a) string. + Gets the object which value is being asserted. - - The (fragement of a) string that the current string should not contain. - + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current equals the attribute. + + The expected attribute + + + + Asserts that the current equals the attribute. + + The expected attribute A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5367,12 +6204,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. + Asserts that the current does not equal the attribute, + using its implementation. - The string that the subject is not expected to contain. + The unexpected attribute + + + + Asserts that the current does not equal the attribute, + using its implementation. + + The unexpected attribute A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5381,10 +6225,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is . + Asserts that the current has the specified value. + + The expected value + + + + Asserts that the current has the specified value. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5393,10 +6244,34 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is not . + Returns the type of the subject the assertion applies on. + + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current equals the document, + using its implementation. + + The expected document + + + + Asserts that the current equals the document, + using its implementation. + The expected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5405,11 +6280,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string has the specified length. + Asserts that the current does not equal the document, + using its implementation. - The expected length of the string + The unexpected document + + + + Asserts that the current does not equal the document, + using its implementation. + + The unexpected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5418,10 +6301,19 @@ Zero or more objects to format using the placeholders in . - + + + Asserts that the current is equivalent to the document, + using its implementation. + + The expected document + + - Asserts that a string is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5430,10 +6322,19 @@ Zero or more objects to format using the placeholders in . - + + + Asserts that the current is not equivalent to the document, + using its implementation. + + The unexpected document + + - Asserts that a string is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5442,130 +6343,124 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is neither null nor . + Asserts that the current has a root element with the specified + name. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + The name of the expected root element of the current document. - + - Asserts that a string is either null or . + Asserts that the current has a root element with the specified + name. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + The name of the expected root element of the current document. - + - Asserts that a string is neither null nor nor white space + Asserts that the current has a root element with the specified + name. + The name of the expected root element of the current document. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that a string is either null or or white space + Asserts that the current has a root element with the specified + name. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + The full name of the expected root element of the current document. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the element of the current has a direct + child element with the specified name. + + The name of the expected child element of the current document's Root element. + - + - Contains a number of methods to assert that two objects differ in the expected way. + Asserts that the element of the current has a direct + child element with the specified name. - - You can use the and for a more fluent - way of specifying a or a . - + + The full name of the expected child element of the current document's Root element. + - + - Asserts that a occurs a specified amount of time before another . + Asserts that the element of the current has a direct + child element with the specified name. - - The to compare the subject with. + + The name of the expected child element of the current document's Root element. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that a occurs a specified amount of time after another . + Asserts that the element of the current has a direct + child element with the specified name. - - The to compare the subject with. + + The full name of the expected child element of the current document's Root element. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Provides the logic and the display text for a . + Returns the type of the subject the assertion applies on. - + - Contains a number of methods to assert that a meets certain expectations. + Contains a number of methods to assert that an is in the expected state. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Asserts that the current type is equal to the specified type. + Asserts that the current equals the element. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - + The expected element - + - Asserts that the current type is equal to the specified type. + Asserts that the current equals the element. - The expected type + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5574,20 +6469,19 @@ Zero or more objects to format using the placeholders in . - + - Creates an error message in case the specifed type differs from the - type. + Asserts that the current does not equal the element, + using its implementation. - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - + The unexpected element - + - Asserts that the current type is not equal to the specified type. + Asserts that the current does not equal the element, + using its implementation. + The unexpected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5596,11 +6490,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current type is not equal to the specified type. + Asserts that the current is equivalent to the element, + using its implementation. - The unexpected type + The expected element + + + + Asserts that the current is equivalent to the element, + using its implementation. + + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5609,10 +6511,19 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with the specified . + Asserts that the current is not equivalent to the element, + using its implementation. + + The unexpected element + + + + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5621,14 +6532,17 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current is decorated with an attribute of type - that matches the specified . + Asserts that the current has the specified value. - - The predicate that the attribute must match. - + The expected value + + + + Asserts that the current has the specified value. + + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5637,124 +6551,169 @@ Zero or more objects to format using the placeholders in . - - - Gets the object which value is being asserted. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - + - Throws a framework-specific exception to indicate a failing unit test. + Asserts that the current has an attribute with the specified + and . + The name of the expected attribute + The value of the expected attribute - + - Gets a value indicating whether the corresponding test framework is currently available. + Asserts that the current has an attribute with the specified + and . + The name of the expected attribute + The value of the expected attribute - + - Throws a framework-specific exception to indicate a failing unit test. + Asserts that the current has an attribute with the specified + and . + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets a value indicating whether the corresponding test framework is currently available. + Asserts that the current has an attribute with the specified + and . + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Throws a framework-specific exception to indicate a failing unit test. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element - + - Gets a value indicating whether the corresponding test framework is currently available. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element - + - Provides a fluent API for verifying an arbitrary condition. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Asserts that the current has a direct child element with the specified + name. + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Initializes a new instance of the class. + Returns the type of the subject the assertion applies on. - + - Gets the name or identifier of the current subject, or a default value if the subject is not known. + Indicates whether the current can handle the specified . + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + - + - Specify the condition that must be satisfied. + Returns a that represents this instance. - If true the verification will be succesful. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + - + - Specify a predicate that with the condition that must be satisfied. + Contains a number of methods to assert that an asynchronous method yields the expected result. - + - Specify the reason why you expect the condition to be true. + Asserts that the current throws an exception of type . - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Define the failure message for the verification. + Asserts that the current does not throw any exception. - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Indicates that every argument passed into is displayed on a separate line. + Asserts that the current does not throw an exception of type . + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Gets or sets the name of the subject for the next verification. + Gets the that is being asserted. diff --git a/dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll b/dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll new file mode 100644 index 00000000000..60da7c6e9a0 Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.xml b/dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml similarity index 78% rename from dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.xml rename to dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml index d76b7b78426..5cafcf2aaef 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/winrt45/FluentAssertions.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/net45/FluentAssertions.xml @@ -13,6 +13,9 @@ Contains extension methods for custom assertions in unit tests. + + Provides extension methods for monitoring and querying events. + @@ -57,73 +60,6 @@ current . - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Forces enumerating a collection. Should be used to assert that a method that uses the @@ -178,6 +114,12 @@ current . + + + Returns an object that can be used to assert the + current . + + Returns an object that can be used to assert the @@ -310,6 +252,18 @@ current . + + + Returns a object that can be used to assert the + current . + + + + + Returns a object that can be used to assert the current . + + + Returns a object that can be used to assert the methods returned by the @@ -317,6 +271,13 @@ + + + Returns a object that can be used to assert the + current . + + + Returns a object that can be used to assert the properties returned by the @@ -324,6 +285,11 @@ + + + Asserts that the properties of an object matches those of another object. + + Asserts that an object is equivalent to another object. @@ -376,126 +342,388 @@ - + - Contains a number of methods to assert that an is in the expected state. + Starts monitoring an object for its events. + Thrown if eventSource is Null. - + - Contains a number of methods to assert that a reference type object is in the expected state. + Asserts that an object has raised a particular event at least once. + The object exposing the event. + The name of the event that should have been raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the object is of the specified type . + Asserts that an object has raised a particular event at least once. - The expected type of the object. + The object exposing the event. + + The name of the event that should have been raised. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - + - Asserts that the is satisfied. + Asserts that an object has not raised a particular event. - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + The object exposing the event. + + The name of the event that should not be raised. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the is satisfied. + Asserts that an object has not raised a particular event. - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + The object exposing the event. + + The name of the event that should not be raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Gets the object which value is being asserted. + Asserts that an object has raised the event for a particular property. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the number of items in the collection matches the supplied amount. + Asserts that an object has raised the event for a particular property. - The expected number of items in the collection. + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the number of items in the collection matches a condition stated by the . + Asserts that an object has not raised the event for a particular property. - A predicate that yields the number of items that is expected to be in the collection. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the collection does not contain any items. + Obtains the for a particular event of the . + + The object for which to get an event recorder. + The name of the event. + + + + + Asserts that all occurences of the event originated from the . + + + + + Asserts that at least one occurrence of the event had an object matching a predicate. + + + + + Asserts that the throws an exception. + A reference to the method or property. + + The type of the exception it should throw. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + Returns an object that allows asserting additional members of the thrown exception. + - + - Asserts that the collection contains at least 1 item. + Asserts that the does not throw a particular exception. + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the collection does not contain any duplicate items. + Asserts that the does not throw any exception at all. + The current method or property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the collection does not contain any null items. + Asserts that the throws an exception. + + A reference to the method or property. + + The type of the exception it should throw. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + Returns an object that allows asserting additional members of the thrown exception. + + + + + Asserts that the does not throw a particular exception. + + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Asserts that the does not throw any exception at all. + + The current method or property. + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + + + Contains a number of methods to assert that an is in the expected state. + + + + + Contains a number of methods to assert that a reference type object is in the expected state. + + + + + Asserts that the current object has not been initialized yet. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current object has been initialized. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the object is of the specified type . + + The expected type of the object. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the object is of the specified type . + + + The type that the subject is supposed to be of. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the object is assignable to a variable of type . + + The type to which the object should be assignable. + The reason why the object should be assignable to the type. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Asserts that the is satisfied. + + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Asserts that the is satisfied. + + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Gets the object which value is being asserted. + + + + + Returns the type of the subject the assertion applies on. + + + + + Asserts that the collection does not contain any items. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains at least 1 item. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection does not contain any duplicate items. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection does not contain any null items. A formatted phrase as is supported by explaining why the assertion @@ -725,10 +953,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current collection has the supplied at the + supplied . + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -737,10 +968,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Asserts that the current collection does not contain the supplied item. + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -749,13 +981,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has the supplied at the - supplied . + Asserts that the collection shares one or more items with the specified . - The index where the element is expected - The expected element + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -764,11 +994,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection does not contain the supplied item. + Asserts that the collection does not share any items with the specified . - The element that is not expected to be in the collection + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -777,11 +1007,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Returns the type of the subject the assertion applies on. - The with the expected shared items. + + + + Contains a number of methods to assert that an is in the expectation state. + + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -790,11 +1030,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the number of items in the collection matches a condition stated by the . - The to compare to. + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -803,11 +1043,6 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expectation state. - - Asserts that two collections contain the same items in the same order, where equality is determined using a @@ -904,30 +1139,6 @@ Contains a number of methods to assert that an is in the expected state. - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - Asserts that the number of items in the dictionary matches the supplied amount. @@ -1163,9 +1374,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -1173,12 +1384,11 @@ Contains a number of methods to assert that an is in the expected state. - + - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. + Asserts that the number of items in the collection matches the supplied amount. - An object, or of objects that are expected to be in the collection. + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1187,16 +1397,177 @@ Zero or more objects to format using the placeholders in . - + - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + Asserts that the number of items in the collection matches a condition stated by the . + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Finds the first index at which the does not match the - string anymore, including the exact casing. - + Asserts that the current collection contains the specified object. Elements are compared + using their implementation. + + An object, or of objects that are expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Gets the active configuration, + + + + + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . + + + + + Gets or sets the assembly name to scan for custom value formatters in case + is set to . + + + + + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + + + + + Maintains the framework-specific services. + + + + + Finds the first index at which the does not match the + string anymore, including the exact casing. + @@ -1222,12 +1593,17 @@ Any string that is empty (including the original string) is ignored. + + + Changes the first character of a string to uppercase. + + Determines whether two objects refer to the same property. - + Finds the property by a case-sensitive name. @@ -1235,7 +1611,7 @@ Returns null if no such property exists. - + Determines whether the specified method has been annotated with a specific attribute. @@ -1243,84 +1619,127 @@ true if the specified method has attribute; otherwise, false. - + - Provides extension methods for monitoring and querying events. + Defines the modes in which custom implementations of are detected as configured + through . - + - Starts monitoring an object for its events. + Detection is disabled. - Thrown if eventSource is Null. - + - Asserts that an object has raised the event for a particular property. + Only custom value formatters exposed through the assembly set in + are detected. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. + All custom value formatters in any assembly loaded in the current will be detected. + + + + + Represents a collection of assertion results obtained through a . + + + + + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. + + + + + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . - + - Asserts that an object has not raised the event for a particular property. + Gets a value indicating whether this collection contains a set without any failures at all. + + + + Defines a step in the process of comparing two object graphs for structural equivalency. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + May throw when preconditions are not met or if it detects mismatching data. - + - Asserts that an object has not raised the event for a particular property. + Gets a value indicating whether this step can handle the current subject and/or expectation. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + May throw when preconditions are not met or if it detects mismatching data. - + - Asserts that all occurences of the event originated from the . + Static methods that aid in generic event subscription - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder + when invoked. + + + + + Finds the Return Type of a Delegate. + + + + + Returns an Array of Types that make up a delegate's parameter signature. + + + + + Returns an array of types appended with an EventRecorder reference at the beginning. + + + + + Returns T/F Dependent on a Type Being a Delegate. + + + + + Returns the MethodInfo for the Delegate's "Invoke" Method. @@ -1373,77 +1792,172 @@ - The object events are recorded from + The object events are recorded from + + + + + The name of the event that's recorded + + + + + Simple dictionary that uses a to the event source as the key. + This should ensure the Garbage Collector can still clean-up the event source object. + + + + + This class is used to store data about an intercepted event + + + + + Default constructor stores the parameters the event was raised with + + + + + Parameters for the event + + + + + Defines a strategy for handling failures in a . + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - + - The name of the event that's recorded + Gets an object that wraps and executes a conditional or unconditional assertion. - + - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. + Throws a generic exception in case no other test harness is detected. - + - This class is used to store data about an intercepted event + Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - + - Default constructor stores the parameters the event was raised with + Throws a framework-specific exception to indicate a failing unit test. - + - Parameters for the event + Gets a value indicating whether the corresponding test framework is currently available. - + - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + Throws a framework-specific exception to indicate a failing unit test. - + - Gets an object that wraps and executes a conditional or unconditional verification. + Gets a value indicating whether the corresponding test framework is currently available. - + - Provides a fluent API for verifying an arbitrary condition. + Throws a framework-specific exception to indicate a failing unit test. - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Gets a value indicating whether the corresponding test framework is currently available. - + - Initializes a new instance of the class. + Represents an implicit or explicit scope within which multiple assertions can be collected. - + - Gets the name or identifier of the current subject, or a default value if the subject is not known. + Represents the phrase that can be used in as a placeholder for the reason of an assertion. - + - Specify the condition that must be satisfied. + Initializes a new instance of the class. - If true the verification will be succesful. - + - Specify a predicate that with the condition that must be satisfied. + Specify the condition that must be satisfied. + If true the assertion will be succesful. - + Specify the reason why you expect the condition to be true. @@ -1455,27 +1969,61 @@ Zero or more values to use for filling in any compatible placeholders. - + - Define the failure message for the verification. + Define the failure message for the assertion. If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with + defined through . Only 10 are supported in combination with a {reason}. The format string that represents the failure message. Optional arguments for the - + + + Discards and returns the failures that happened up to now. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Gets data associated with the current scope and identified by . + + + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. + + + + + Represents a collection of data items that are associated with an . + + + - Indicates that every argument passed into is displayed on a separate line. + Custom version of ICloneable that works on all frameworks. - + - Gets or sets the name of the subject for the next verification. + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + @@ -1589,6 +2137,12 @@ specified . + + + Specialized value formatter that looks for static methods in the caller's assembly marked with the + . + + Indicates whether the current can handle the specified . @@ -1615,6 +2169,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -1693,6 +2273,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -1745,6 +2351,11 @@ A that represents this instance. + + + Ensures a custom formatter is included in the chain, just before the default formatter is executed. + + Indicates whether the current can handle the specified . @@ -1823,6 +2434,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -1875,6 +2512,11 @@ A that represents this instance. + + + Marks a static method as a kind of for a particular type. + + Indicates whether the current can handle the specified . @@ -1989,7 +2631,7 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. The object that is being extended. @@ -2008,7 +2650,45 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. The object that is being extended. @@ -2141,33 +2821,9 @@ Zero or more objects to format using the placeholders in . - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -2438,6 +3094,9 @@ The message must start with the exact text, including the casing of the characters.. + + The message must match exactly, including the casing of the characters. + @@ -2812,6 +3471,30 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is not false. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the value is not true. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that a nullable is in the expected state. @@ -3020,6 +3703,31 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. @@ -3049,6 +3757,19 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is equal to the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that an is in the expected state. @@ -3106,29 +3827,49 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the object is null. + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the object is not null. + Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains + the values of all properties. - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . + + + + + Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains + the values of all properties. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. + @@ -3266,6 +4007,36 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string matches a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not match a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts exactly with the specified value, @@ -3280,6 +4051,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts with the specified , @@ -3294,6 +4079,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends exactly with the specified , @@ -3308,6 +4107,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends with the specified , @@ -3322,6 +4135,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end with the specified , + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string contains another (fragment of a) string. @@ -3417,33 +4244,33 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is null. + Asserts that a string is neither null nor . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is not null. + Asserts that a string is either null or . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3453,9 +4280,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is either null or . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3465,9 +4292,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor nor white space + Asserts that a string is either null or or white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3489,9 +4316,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -3594,9 +4421,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the that is being asserted. + Returns the type of the subject the assertion applies on. @@ -3701,6 +4528,11 @@ Gets the exception object of the exception thrown. + + + Returns the type of the subject the assertion applies on. + + Provides methods for asserting that the execution time of an satifies certain conditions. @@ -3812,29 +4644,12 @@ 2 - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -3891,6 +4706,15 @@ Throws if the rule did support the data type but assertion fails. + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 + Provides the required information for executing an equality assertion between a subject and an expectation. @@ -4046,10 +4870,15 @@ Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. @@ -4058,6 +4887,12 @@ or collections. + + + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. + + Adds all public properties of the subject as far as they are defined on the declared type. @@ -4108,6 +4943,14 @@ Causes the structural equality check to include nested collections and complex types. + + + Causes the structural equality check to exclude nested collections and complex types. + + + Behaves similarly to the old property assertions API. + + Causes the structural equality check to ignore any cyclic references. @@ -4128,17 +4971,34 @@ - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules + + + + + Causes all collections to be compared in the order in which the items appear in the expectation. + + + + + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. + + + + + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. @@ -4150,29 +5010,35 @@ 2 - + Gets an ordered collection of selection rules that define what properties are included. - + Gets an ordered collection of matching rules that determine which subject properties are matched with which expectation properties. - + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with expectation properties. - + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. + + + Gets value indicating whether the equality check will include nested collections and complex types. - + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. @@ -4187,7 +5053,7 @@ Allows overriding the way structural equality is applied to (nested) objects of tyoe - + Allows overriding the way structural equality is applied to particular properties. @@ -4196,12 +5062,77 @@ override applies. - + + + Defines a rule that is used to determine whether the order of items in collections is relevant or not. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + An ordering rule that basically states that the order of items in all collections is important. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Collection of s. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4228,12 +5159,12 @@ Cyclic references will result in an exception. - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4245,12 +5176,17 @@ May throw when preconditions are not met or if it detects mismatching data. - + + + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4346,15 +5282,9 @@ Provides information on a particular property during an assertion for structural equality of two object graphs. - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4368,11 +5298,6 @@ Zero or more objects to format using the placeholders in . - - - Gets a verification object associated with the current and . - - Gets a value indicating whether the current context represents the root of the object graph. @@ -4493,12 +5418,12 @@ Zero or more objects to format using the placeholders in . - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4531,15 +5456,9 @@ Gets the value of the - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4569,22 +5488,70 @@ Gets the run-time type of the current object. - + + + Is responsible for validating the equality of one or more properties of a subject with another object. + + + - Gets a verification object associated with the current and . + Provides access the list of steps that are executed in the order of appearance during an equivalency test. - + - Is responsible for validating the equality of one or more properties of a subject with another object. + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. + + + + + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. + + + The behavior of a cyclic reference is determined byt he constructor + parameter. + + + + + Creates a new object that is a copy of the current instance. + + + + A new object that is a copy of this instance. + + + + + Represents an object tracked by the including it's location within an object graph. + + + + + Determines whether the specified is equal to the current . + + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 + + + + Serves as a hash function for a particular type. + + A hash code for the current . + + 2 - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4763,6 +5730,12 @@ Contains assertions for the objects returned by the parent . + + + Initializes a new instance of the class. + + The method to assert. + Initializes a new instance of the class. @@ -4793,11 +5766,32 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of methods of a type through reflection. @@ -4868,6 +5862,12 @@ Contains assertions for the objects returned by the parent . + + + Initializes a new instance of the class, for a single . + + The property to assert. + Initializes a new instance of the class, for a number of objects. @@ -4886,6 +5886,18 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected properties have a setter. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the selected methods are decorated with the specified . @@ -4903,6 +5915,11 @@ Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of properties of a type through reflection. @@ -5056,9 +6073,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5066,6 +6083,11 @@ Allows for fluent filtering a list of types. + + + The resulting objects. + + Determines whether a type is a subclass of another type, but NOT the same type. @@ -5109,6 +6131,50 @@ 2 + + + Contains a number of methods to assert that all s in a + meet certain expectations. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current is decorated with the specified . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current is decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Gets the object which value is being asserted. + + Contains a number of methods to assert that an is in the expected state. @@ -5159,40 +6225,6 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Asserts that the current has the specified value. @@ -5212,9 +6244,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5269,38 +6301,46 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . @@ -5310,6 +6350,13 @@ The name of the expected root element of the current document. + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + Asserts that the current has a root element with the specified @@ -5324,6 +6371,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has a root element with the specified + name. + + The full name of the expected root element of the current document. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the element of the current has a direct @@ -5333,6 +6394,15 @@ The name of the expected child element of the current document's Root element. + + + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + Asserts that the element of the current has a direct @@ -5349,9 +6419,25 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. @@ -5404,38 +6490,65 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current has the specified value. + + The expected value + + + + Asserts that the current has the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . @@ -5446,6 +6559,14 @@ The name of the expected attribute The value of the expected attribute + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + Asserts that the current has an attribute with the specified @@ -5461,6 +6582,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the current has a direct child element with the specified @@ -5468,12 +6604,19 @@ The name of the expected child element + + + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + Asserts that the current has a direct child element with the specified name. - The name of the expected child element + The name of the expected child element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5482,10 +6625,50 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. + + + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + @@ -5504,6 +6687,30 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current does not throw any exception. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current does not throw an exception of type . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the that is being asserted. diff --git a/dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll b/dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll new file mode 100644 index 00000000000..14ae808f099 Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml b/dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml similarity index 81% rename from dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml rename to dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml index a72e912fba9..33e27516181 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml @@ -13,29 +13,8 @@ Contains extension methods for custom assertions in unit tests. - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - Returns an object that can be used to assert the - current . + Provides extension methods for monitoring and querying events. @@ -86,6 +65,30 @@ Zero or more values to use for filling in any compatible placeholders. + + + Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow + overloads. + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + + Forces enumerating a collection. Should be used to assert that a method that uses the @@ -140,6 +143,12 @@ current . + + + Returns an object that can be used to assert the + current . + + Returns an object that can be used to assert the @@ -272,6 +281,18 @@ current . + + + Returns a object that can be used to assert the + current . + + + + + Returns a object that can be used to assert the current . + + + Returns a object that can be used to assert the methods returned by the @@ -279,6 +300,13 @@ + + + Returns a object that can be used to assert the + current . + + + Returns a object that can be used to assert the properties returned by the @@ -338,6 +366,89 @@ + + + Starts monitoring an object for its events. + + Thrown if eventSource is Null. + + + + Asserts that an object has raised the event for a particular property. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Obtains the for a particular event of the . + + The object for which to get an event recorder. + The name of the event. + + + + + Asserts that all occurences of the event originated from the . + + + + + Asserts that at least one occurrence of the event had an object matching a predicate. + + Contains a number of methods to assert that an is in the expected state. @@ -348,6 +459,30 @@ Contains a number of methods to assert that a reference type object is in the expected state. + + + Asserts that the current object has not been initialized yet. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current object has been initialized. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is of the specified type . @@ -361,6 +496,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the object is of the specified type . + + + The type that the subject is supposed to be of. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is assignable to a variable of type . @@ -393,31 +543,10 @@ Gets the object which value is being asserted. - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - + - Asserts that the number of items in the collection matches a condition stated by the . + Returns the type of the subject the assertion applies on. - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - @@ -687,10 +816,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current collection has the supplied at the + supplied . + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -699,10 +831,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Asserts that the current collection does not contain the supplied item. + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -711,13 +844,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has the supplied at the - supplied . + Asserts that the collection shares one or more items with the specified . - The index where the element is expected - The expected element + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -726,11 +857,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection does not contain the supplied item. + Asserts that the collection does not share any items with the specified . - The element that is not expected to be in the collection + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -739,11 +870,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Returns the type of the subject the assertion applies on. - The with the expected shared items. + + + + Contains a number of methods to assert that an is in the expectation state. + + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -752,11 +893,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the number of items in the collection matches a condition stated by the . - The to compare to. + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -765,11 +906,6 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expectation state. - - Asserts that two collections contain the same items in the same order, where equality is determined using a @@ -866,30 +1002,6 @@ Contains a number of methods to assert that an is in the expected state. - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - Asserts that the number of items in the dictionary matches the supplied amount. @@ -1125,9 +1237,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -1135,12 +1247,136 @@ Contains a number of methods to assert that an is in the expected state. - + - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. + Asserts that the number of items in the collection matches the supplied amount. - An object, or of objects that are expected to be in the collection. + The expected number of items in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the number of items in the collection matches a condition stated by the . + + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current collection contains the specified object. Elements are compared + using their implementation. + + An object, or of objects that are expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1149,11 +1385,47 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Gets the active configuration, + + + + + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . + + + + + Gets or sets the assembly name to scan for custom value formatters in case + is set to . + + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + + + Maintains the framework-specific services. + + Finds the first index at which the does not match the @@ -1184,12 +1456,17 @@ Any string that is empty (including the original string) is ignored. + + + Changes the first character of a string to uppercase. + + Determines whether two objects refer to the same property. - + Finds the property by a case-sensitive name. @@ -1197,7 +1474,7 @@ Returns null if no such property exists. - + Determines whether the specified method has been annotated with a specific attribute. @@ -1205,85 +1482,92 @@ true if the specified method has attribute; otherwise, false. - + - Provides extension methods for monitoring and querying events. + Defines the modes in which custom implementations of are detected as configured + through . - + - Starts monitoring an object for its events. + Detection is disabled. - Thrown if eventSource is Null. - + - Asserts that an object has raised the event for a particular property. + Only custom value formatters exposed through the assembly set in + are detected. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. + All custom value formatters in any assembly loaded in the current will be detected. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Represents a collection of assertion results obtained through a . + + + + + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. + + + + + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . - + - Asserts that an object has not raised the event for a particular property. + Gets a value indicating whether this collection contains a set without any failures at all. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + + + Defines a step in the process of comparing two object graphs for structural equivalency. + + + + + Gets a value indicating whether this step can handle the current subject and/or expectation. + + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + May throw when preconditions are not met or if it detects mismatching data. - + - Asserts that all occurences of the event originated from the . + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + @@ -1400,14 +1684,79 @@ Parameters for the event + + + Defines a strategy for handling failures in a . + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - + - Gets an object that wraps and executes a conditional or unconditional verification. + Gets an object that wraps and executes a conditional or unconditional assertion. @@ -1425,38 +1774,28 @@ Gets a value indicating whether the corresponding test framework is currently available. - + - Provides a fluent API for verifying an arbitrary condition. + Represents an implicit or explicit scope within which multiple assertions can be collected. - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Represents the phrase that can be used in as a placeholder for the reason of an assertion. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - + Specify the condition that must be satisfied. - If true the verification will be succesful. + If true the assertion will be succesful. - - - Specify a predicate that with the condition that must be satisfied. - - - + Specify the reason why you expect the condition to be true. @@ -1468,28 +1807,62 @@ Zero or more values to use for filling in any compatible placeholders. - + - Define the failure message for the verification. + Define the failure message for the assertion. If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with + defined through . Only 10 are supported in combination with a {reason}. The format string that represents the failure message. Optional arguments for the - + + + Discards and returns the failures that happened up to now. + + + - Indicates that every argument passed into is displayed on a separate line. + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - + - Gets or sets the name of the subject for the next verification. + Gets data associated with the current scope and identified by . + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. + + + + + Represents a collection of data items that are associated with an . + + + + + Custom version of ICloneable that works on all frameworks. + + + + + Creates a new object that is a copy of the current instance. + + + + A new object that is a copy of this instance. + + Extension methods on to allow for a more fluent way of specifying a . @@ -1686,6 +2059,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -1816,6 +2215,11 @@ A that represents this instance. + + + Ensures a custom formatter is included in the chain, just before the default formatter is executed. + + Indicates whether the current can handle the specified . @@ -1868,6 +2272,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -2039,7 +2469,7 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. The object that is being extended. @@ -2058,7 +2488,45 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. The object that is being extended. @@ -2191,33 +2659,9 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -2488,6 +2932,9 @@ The message must start with the exact text, including the casing of the characters.. + + The message must match exactly, including the casing of the characters. + @@ -2862,6 +3309,30 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is not false. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the value is not true. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that a nullable is in the expected state. @@ -3070,14 +3541,51 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. - + + + Asserts that a nullable value is not null. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + - Asserts that a nullable value is not null. + Asserts that a nullable value is null. A formatted phrase as is supported by explaining why the assertion @@ -3087,17 +3595,18 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a nullable value is null. + Asserts that the value is equal to the specified value. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + @@ -3156,29 +3665,10 @@ Zero or more values to use for filling in any compatible placeholders. - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - + - Asserts that the object is not null. + Returns the type of the subject the assertion applies on. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - @@ -3316,6 +3806,36 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string matches a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not match a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts exactly with the specified value, @@ -3330,6 +3850,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts with the specified , @@ -3344,6 +3878,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends exactly with the specified , @@ -3358,6 +3906,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends with the specified , @@ -3372,6 +3934,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end with the specified , + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string contains another (fragment of a) string. @@ -3467,33 +4043,33 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is null. + Asserts that a string is neither null nor . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is not null. + Asserts that a string is either null or . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3503,9 +4079,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is either null or . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3515,9 +4091,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor nor white space + Asserts that a string is either null or or white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3539,9 +4115,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -3644,9 +4220,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the that is being asserted. + Returns the type of the subject the assertion applies on. @@ -3751,6 +4327,11 @@ Gets the exception object of the exception thrown. + + + Returns the type of the subject the assertion applies on. + + Selection rule that adds all public properties of the subject as far as they are defined on the declared @@ -3823,29 +4404,12 @@ 2 - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -3902,6 +4466,15 @@ Throws if the rule did support the data type but assertion fails. + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 + Provides the required information for executing an equality assertion between a subject and an expectation. @@ -4057,10 +4630,15 @@ Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. @@ -4069,6 +4647,12 @@ or collections. + + + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. + + Adds all public properties of the subject as far as they are defined on the declared type. @@ -4119,6 +4703,14 @@ Causes the structural equality check to include nested collections and complex types. + + + Causes the structural equality check to exclude nested collections and complex types. + + + Behaves similarly to the old property assertions API. + + Causes the structural equality check to ignore any cyclic references. @@ -4139,17 +4731,34 @@ - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules + + + + + Causes all collections to be compared in the order in which the items appear in the expectation. + + + + + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. + + + + + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. @@ -4161,29 +4770,35 @@ 2 - + Gets an ordered collection of selection rules that define what properties are included. - + Gets an ordered collection of matching rules that determine which subject properties are matched with which expectation properties. - + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with expectation properties. - + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. + + + Gets value indicating whether the equality check will include nested collections and complex types. - + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. @@ -4198,7 +4813,7 @@ Allows overriding the way structural equality is applied to (nested) objects of tyoe - + Allows overriding the way structural equality is applied to particular properties. @@ -4207,12 +4822,77 @@ override applies. - + + + Defines a rule that is used to determine whether the order of items in collections is relevant or not. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + An ordering rule that basically states that the order of items in all collections is important. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Collection of s. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4239,12 +4919,12 @@ Cyclic references will result in an exception. - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4256,12 +4936,17 @@ May throw when preconditions are not met or if it detects mismatching data. - + + + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4357,15 +5042,9 @@ Provides information on a particular property during an assertion for structural equality of two object graphs. - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4379,11 +5058,6 @@ Zero or more objects to format using the placeholders in . - - - Gets a verification object associated with the current and . - - Gets a value indicating whether the current context represents the root of the object graph. @@ -4432,12 +5106,12 @@ 2 - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4470,60 +5144,102 @@ Gets the value of the - + + + Gets the value of the . + + + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + + + Zero or more objects to format using the placeholders in . + + + + + Gets a value indicating whether the current context represents the root of the object graph. + + + + + Gets the compile-time type of the current object. If the current object is not the root object, then it returns the + same as the property does. + + + - Gets the property of the that was matched against the , - or null if is true. + Gets the run-time type of the current object. - + - Gets the value of the . + Is responsible for validating the equality of one or more properties of a subject with another object. - + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + Provides access the list of steps that are executed in the order of appearance during an equivalency test. - + - Zero or more objects to format using the placeholders in . + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. - + - Gets a value indicating whether the current context represents the root of the object graph. + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. + + The behavior of a cyclic reference is determined byt he constructor + parameter. + - + - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + - + - Gets the run-time type of the current object. + Represents an object tracked by the including it's location within an object graph. - + - Gets a verification object associated with the current and . + Determines whether the specified is equal to the current . + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 - + - Is responsible for validating the equality of one or more properties of a subject with another object. + Serves as a hash function for a particular type. + + A hash code for the current . + + 2 - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4702,6 +5418,12 @@ Contains assertions for the objects returned by the parent . + + + Initializes a new instance of the class. + + The method to assert. + Initializes a new instance of the class. @@ -4732,11 +5454,32 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of methods of a type through reflection. @@ -4807,6 +5550,12 @@ Contains assertions for the objects returned by the parent . + + + Initializes a new instance of the class, for a single . + + The property to assert. + Initializes a new instance of the class, for a number of objects. @@ -4825,6 +5574,18 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected properties have a setter. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the selected methods are decorated with the specified . @@ -4842,6 +5603,11 @@ Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of properties of a type through reflection. @@ -4995,7 +5761,51 @@ Zero or more objects to format using the placeholders in . - + + + Returns the type of the subject the assertion applies on. + + + + + Contains a number of methods to assert that all s in a + meet certain expectations. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current is decorated with the specified . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current is decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + Gets the object which value is being asserted. @@ -5005,6 +5815,11 @@ Allows for fluent filtering a list of types. + + + The resulting objects. + + Determines whether a type is a subclass of another type, but NOT the same type. @@ -5098,40 +5913,6 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Asserts that the current has the specified value. @@ -5151,9 +5932,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5208,38 +5989,46 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . @@ -5249,6 +6038,13 @@ The name of the expected root element of the current document. + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + Asserts that the current has a root element with the specified @@ -5263,6 +6059,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has a root element with the specified + name. + + The full name of the expected root element of the current document. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the element of the current has a direct @@ -5272,6 +6082,15 @@ The name of the expected child element of the current document's Root element. + + + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + Asserts that the element of the current has a direct @@ -5288,9 +6107,25 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. @@ -5343,38 +6178,65 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current has the specified value. + + The expected value + + + + Asserts that the current has the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . @@ -5385,6 +6247,14 @@ The name of the expected attribute The value of the expected attribute + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + Asserts that the current has an attribute with the specified @@ -5400,6 +6270,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the current has a direct child element with the specified @@ -5407,12 +6292,19 @@ The name of the expected child element + + + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + Asserts that the current has a direct child element with the specified name. - The name of the expected child element + The name of the expected child element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5421,9 +6313,23 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. diff --git a/dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll b/dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll new file mode 100644 index 00000000000..744e99e4c39 Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.xml b/dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml similarity index 83% rename from dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.xml rename to dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml index 526061158a4..b7b2c7ffd0a 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/sl4/FluentAssertions.Silverlight.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/sl4/FluentAssertions.Silverlight.xml @@ -13,29 +13,8 @@ Contains extension methods for custom assertions in unit tests. - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - Returns an object that can be used to assert the - current . + Provides extension methods for monitoring and querying events. @@ -86,6 +65,30 @@ Zero or more values to use for filling in any compatible placeholders. + + + Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow + overloads. + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + + + + + Returns an object that can be used to assert the + current . + + Forces enumerating a collection. Should be used to assert that a method that uses the @@ -140,6 +143,12 @@ current . + + + Returns an object that can be used to assert the + current . + + Returns an object that can be used to assert the @@ -362,6 +371,89 @@ + + + Starts monitoring an object for its events. + + Thrown if eventSource is Null. + + + + Asserts that an object has raised the event for a particular property. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Asserts that an object has not raised the event for a particular property. + + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + + + + + Obtains the for a particular event of the . + + The object for which to get an event recorder. + The name of the event. + + + + + Asserts that all occurences of the event originated from the . + + + + + Asserts that at least one occurrence of the event had an object matching a predicate. + + Contains a number of methods to assert that an is in the expected state. @@ -372,6 +464,30 @@ Contains a number of methods to assert that a reference type object is in the expected state. + + + Asserts that the current object has not been initialized yet. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current object has been initialized. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is of the specified type . @@ -385,6 +501,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the object is of the specified type . + + + The type that the subject is supposed to be of. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the object is assignable to a variable of type . @@ -417,31 +548,10 @@ Gets the object which value is being asserted. - + - Asserts that the number of items in the collection matches the supplied amount. + Returns the type of the subject the assertion applies on. - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - @@ -711,10 +821,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current collection has the supplied at the + supplied . + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -723,10 +836,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Asserts that the current collection does not contain the supplied item. + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -735,13 +849,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has the supplied at the - supplied . + Asserts that the collection shares one or more items with the specified . - The index where the element is expected - The expected element + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -750,11 +862,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection does not contain the supplied item. + Asserts that the collection does not share any items with the specified . - The element that is not expected to be in the collection + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -763,11 +875,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Returns the type of the subject the assertion applies on. - The with the expected shared items. + + + + Contains a number of methods to assert that an is in the expectation state. + + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -776,11 +898,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the number of items in the collection matches a condition stated by the . - The to compare to. + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -789,11 +911,6 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expectation state. - - Asserts that two collections contain the same items in the same order, where equality is determined using a @@ -890,30 +1007,6 @@ Contains a number of methods to assert that an is in the expected state. - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - Asserts that the number of items in the dictionary matches the supplied amount. @@ -1149,9 +1242,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -1159,6 +1252,32 @@ Contains a number of methods to assert that an is in the expected state. + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the number of items in the collection matches a condition stated by the . + + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the current collection contains the specified object. Elements are compared @@ -1173,11 +1292,145 @@ Zero or more objects to format using the placeholders in . + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Gets the active configuration, + + + + + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . + + + + + Gets or sets the assembly name to scan for custom value formatters in case + is set to . + + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + + + Maintains the framework-specific services. + + Finds the first index at which the does not match the @@ -1208,12 +1461,17 @@ Any string that is empty (including the original string) is ignored. + + + Changes the first character of a string to uppercase. + + Determines whether two objects refer to the same property. - + Finds the property by a case-sensitive name. @@ -1221,7 +1479,7 @@ Returns null if no such property exists. - + Determines whether the specified method has been annotated with a specific attribute. @@ -1229,85 +1487,92 @@ true if the specified method has attribute; otherwise, false. - + + + Defines the modes in which custom implementations of are detected as configured + through . + + + + + Detection is disabled. + + + + + Only custom value formatters exposed through the assembly set in + are detected. + + + + + All custom value formatters in any assembly loaded in the current will be detected. + + + - Provides extension methods for monitoring and querying events. + Represents a collection of assertion results obtained through a . - + - Starts monitoring an object for its events. + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. - Thrown if eventSource is Null. - + - Asserts that an object has raised the event for a particular property. + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . - + - Asserts that an object has raised the event for a particular property. + Gets a value indicating whether this collection contains a set without any failures at all. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Defines a step in the process of comparing two object graphs for structural equivalency. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised the event for a particular property. + Gets a value indicating whether this step can handle the current subject and/or expectation. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - + + + + Applies a step as part of the task to compare two objects for structural equality. + + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + May throw when preconditions are not met or if it detects mismatching data. - + - Asserts that all occurences of the event originated from the . + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + @@ -1424,48 +1689,103 @@ Parameters for the event - + - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + Defines a strategy for handling failures in a . - + - Gets an object that wraps and executes a conditional or unconditional verification. + Instructs the strategy to handle a assertion failure. - + - Provides a fluent API for verifying an arbitrary condition. + Discards and returns the failure messages that happened up to now. - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Will throw a combined exception for any failures have been collected since was called. - + - Initializes a new instance of the class. + Returns the messages for the assertion failures that happened until now. - + - Gets the name or identifier of the current subject, or a default value if the subject is not known. + Discards and returns the failure messages that happened up to now. - + - Specify the condition that must be satisfied. + Will throw a combined exception for any failures have been collected since was called. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Instructs the strategy to handle a assertion failure. + + + + + Discards and returns the failure messages that happened up to now. + + + + + Will throw a combined exception for any failures have been collected since was called. + + + + + Returns the messages for the assertion failures that happened until now. + + + + + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + + + + + Gets an object that wraps and executes a conditional or unconditional assertion. + + + + + Represents an implicit or explicit scope within which multiple assertions can be collected. + + + + + Represents the phrase that can be used in as a placeholder for the reason of an assertion. + + + + + Initializes a new instance of the class. - If true the verification will be succesful. - + - Specify a predicate that with the condition that must be satisfied. + Specify the condition that must be satisfied. + If true the assertion will be succesful. - + Specify the reason why you expect the condition to be true. @@ -1477,27 +1797,61 @@ Zero or more values to use for filling in any compatible placeholders. - + - Define the failure message for the verification. + Define the failure message for the assertion. If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with + defined through . Only 10 are supported in combination with a {reason}. The format string that represents the failure message. Optional arguments for the - + + + Discards and returns the failures that happened up to now. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Gets data associated with the current scope and identified by . + + + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. + + + + + Represents a collection of data items that are associated with an . + + + - Indicates that every argument passed into is displayed on a separate line. + Custom version of ICloneable that works on all frameworks. - + - Gets or sets the name of the subject for the next verification. + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + @@ -1747,6 +2101,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -1799,6 +2179,11 @@ A that represents this instance. + + + Ensures a custom formatter is included in the chain, just before the default formatter is executed. + + Indicates whether the current can handle the specified . @@ -1877,6 +2262,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -2048,7 +2459,7 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. The object that is being extended. @@ -2067,7 +2478,45 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. The object that is being extended. @@ -2200,33 +2649,9 @@ Zero or more objects to format using the placeholders in . - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -2497,6 +2922,9 @@ The message must start with the exact text, including the casing of the characters.. + + The message must match exactly, including the casing of the characters. + @@ -2836,19 +3264,44 @@ - Asserts that a nullable boolean value is not null. + Asserts that a nullable boolean value is not null. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a nullable boolean value is null. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the value is equal to the specified value. + The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. Zero or more objects to format using the placeholders in . - + - + - Asserts that a nullable boolean value is null. + Asserts that the value is not false. A formatted phrase as is supported by explaining why the assertion @@ -2856,13 +3309,12 @@ Zero or more objects to format using the placeholders in . - + - + - Asserts that the value is equal to the specified value. + Asserts that the value is not true. - The expected value A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3079,6 +3531,31 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. @@ -3108,6 +3585,19 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is equal to the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that an is in the expected state. @@ -3165,29 +3655,10 @@ Zero or more values to use for filling in any compatible placeholders. - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - + - Asserts that the object is not null. + Returns the type of the subject the assertion applies on. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - @@ -3325,6 +3796,36 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string matches a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not match a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts exactly with the specified value, @@ -3339,6 +3840,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts with the specified , @@ -3353,6 +3868,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends exactly with the specified , @@ -3367,6 +3896,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string ends with the specified , @@ -3381,6 +3924,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not end with the specified , + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string contains another (fragment of a) string. @@ -3476,33 +4033,33 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is null. + Asserts that a string is neither null nor . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is not null. + Asserts that a string is either null or . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3512,9 +4069,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is either null or . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3524,9 +4081,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor nor white space + Asserts that a string is either null or or white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3548,9 +4105,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -3653,9 +4210,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the that is being asserted. + Returns the type of the subject the assertion applies on. @@ -3760,6 +4317,11 @@ Gets the exception object of the exception thrown. + + + Returns the type of the subject the assertion applies on. + + Selection rule that adds all public properties of the subject as far as they are defined on the declared @@ -3832,29 +4394,12 @@ 2 - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -3911,6 +4456,15 @@ Throws if the rule did support the data type but assertion fails. + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 + Provides the required information for executing an equality assertion between a subject and an expectation. @@ -4066,10 +4620,15 @@ Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. @@ -4078,6 +4637,12 @@ or collections. + + + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. + + Adds all public properties of the subject as far as they are defined on the declared type. @@ -4128,6 +4693,14 @@ Causes the structural equality check to include nested collections and complex types. + + + Causes the structural equality check to exclude nested collections and complex types. + + + Behaves similarly to the old property assertions API. + + Causes the structural equality check to ignore any cyclic references. @@ -4148,17 +4721,34 @@ - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules + + + + + Causes all collections to be compared in the order in which the items appear in the expectation. + + + + + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. + + + + + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. @@ -4170,58 +4760,129 @@ 2 - + + + Gets an ordered collection of selection rules that define what properties are included. + + + + + Gets an ordered collection of matching rules that determine which subject properties are matched with which + expectation properties. + + + + + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with + expectation properties. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. + + + + + Gets value indicating whether the equality check will include nested collections and complex types. + + + + + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Defines additional overrides when used with + + + + + Allows overriding the way structural equality is applied to (nested) objects of tyoe + + + + + Allows overriding the way structural equality is applied to particular properties. + + + A predicate based on the of the subject that is used to identify the property for which the + override applies. + + + + + Defines a rule that is used to determine whether the order of items in collections is relevant or not. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + - Gets an ordered collection of selection rules that define what properties are included. + Determines if ordering of the property refered to by the current is relevant. - + - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. + An ordering rule that basically states that the order of items in all collections is important. - + - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. + Determines if ordering of the property refered to by the current is relevant. - + - Gets value indicating whether the equality check will include nested collections and complex types. + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. - + - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + Determines if ordering of the property refered to by the current is relevant. - + - Defines additional overrides when used with + Collection of s. - + - Allows overriding the way structural equality is applied to (nested) objects of tyoe + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + An object that can be used to iterate through the collection. + + 2 - + - Allows overriding the way structural equality is applied to particular properties. + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4248,12 +4909,12 @@ Cyclic references will result in an exception. - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4265,12 +4926,17 @@ May throw when preconditions are not met or if it detects mismatching data. - + + + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4366,15 +5032,9 @@ Provides information on a particular property during an assertion for structural equality of two object graphs. - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4388,11 +5048,6 @@ Zero or more objects to format using the placeholders in . - - - Gets a verification object associated with the current and . - - Gets a value indicating whether the current context represents the root of the object graph. @@ -4513,12 +5168,12 @@ Zero or more objects to format using the placeholders in . - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4551,15 +5206,9 @@ Gets the value of the - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4589,22 +5238,70 @@ Gets the run-time type of the current object. - + - Gets a verification object associated with the current and . + Is responsible for validating the equality of one or more properties of a subject with another object. - + - Is responsible for validating the equality of one or more properties of a subject with another object. + Provides access the list of steps that are executed in the order of appearance during an equivalency test. + + + + + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. + + + + + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. + + + The behavior of a cyclic reference is determined byt he constructor + parameter. + + + + + Creates a new object that is a copy of the current instance. + + + + A new object that is a copy of this instance. + + + + + Represents an object tracked by the including it's location within an object graph. + + + + + Determines whether the specified is equal to the current . + + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 + + + + Serves as a hash function for a particular type. + + A hash code for the current . + + 2 - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4819,11 +5516,32 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of methods of a type through reflection. @@ -4918,6 +5636,18 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected properties have a setter. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the selected methods are decorated with the specified . @@ -4935,6 +5665,11 @@ Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of properties of a type through reflection. @@ -5088,9 +5823,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5240,40 +5975,6 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Asserts that the current has the specified value. @@ -5293,9 +5994,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5350,38 +6051,46 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . @@ -5391,6 +6100,13 @@ The name of the expected root element of the current document. + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + Asserts that the current has a root element with the specified @@ -5405,6 +6121,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has a root element with the specified + name. + + The full name of the expected root element of the current document. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the element of the current has a direct @@ -5414,6 +6144,15 @@ The name of the expected child element of the current document's Root element. + + + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + Asserts that the element of the current has a direct @@ -5430,9 +6169,25 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. @@ -5485,38 +6240,65 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - + - Asserts that the is null. + Asserts that the current is equivalent to the element, + using its implementation. + The expected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - + - Asserts that the is not null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current has the specified value. + + The expected value + + + + Asserts that the current has the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . @@ -5527,6 +6309,14 @@ The name of the expected attribute The value of the expected attribute + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + Asserts that the current has an attribute with the specified @@ -5542,6 +6332,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the current has a direct child element with the specified @@ -5549,12 +6354,19 @@ The name of the expected child element + + + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + Asserts that the current has a direct child element with the specified name. - The name of the expected child element + The name of the expected child element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5563,9 +6375,23 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll b/dep/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll similarity index 100% rename from dep/FluentAssertions.2.0.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll rename to dep/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll diff --git a/dep/FluentAssertions.2.0.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml b/dep/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml similarity index 100% rename from dep/FluentAssertions.2.0.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml rename to dep/FluentAssertions.2.2.0.0/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml diff --git a/dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll b/dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll new file mode 100644 index 00000000000..470a6e5ba8a Binary files /dev/null and b/dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.dll differ diff --git a/dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.xml b/dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml similarity index 82% rename from dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.xml rename to dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml index 9b604725a44..b3bfd8d6466 100644 --- a/dep/FluentAssertions.2.0.0.1/lib/net40/FluentAssertions.xml +++ b/dep/FluentAssertions.2.2.0.0/lib/winrt45/FluentAssertions.xml @@ -13,6 +13,9 @@ Contains extension methods for custom assertions in unit tests. + + Provides extension methods for monitoring and querying events. + @@ -57,54 +60,6 @@ current . - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Forces enumerating a collection. Should be used to assert that a method that uses the @@ -159,6 +114,12 @@ current . + + + Returns an object that can be used to assert the + current . + + Returns an object that can be used to assert the @@ -324,11 +285,6 @@ - - - Asserts that the properties of an object matches those of another object. - - Asserts that an object is equivalent to another object. @@ -381,162 +337,199 @@ - + - Contains a number of methods to assert that an is in the expected state. + Starts monitoring an object for its events. + Thrown if eventSource is Null. - + - Contains a number of methods to assert that a reference type object is in the expected state. + Asserts that an object has raised the event for a particular property. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the object is of the specified type . + Asserts that an object has raised the event for a particular property. - The expected type of the object. + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised, or + null to refer to all properties. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the object is assignable to a variable of type . + Asserts that an object has not raised the event for a particular property. - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the is satisfied. + Asserts that an object has not raised the event for a particular property. - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + The object exposing the event. + + A lambda expression referring to the property for which the property changed event should have been raised. + + + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. + + + Zero or more values to use for filling in any compatible placeholders. + + + You must call on the same object prior to this call so that Fluent Assertions can + subscribe for the events of the object. + - + - Asserts that the is satisfied. + Obtains the for a particular event of the . - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. + The object for which to get an event recorder. + The name of the event. + - + - Gets the object which value is being asserted. + Asserts that all occurences of the event originated from the . - + - Asserts that the number of items in the collection matches the supplied amount. + Asserts that at least one occurrence of the event had an object matching a predicate. - The expected number of items in the collection. + + + + Asserts that the throws an exception. + + A reference to the method or property. + + The type of the exception it should throw. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + Returns an object that allows asserting additional members of the thrown exception. + - + - Asserts that the number of items in the collection matches a condition stated by the . + Asserts that the does not throw a particular exception. - A predicate that yields the number of items that is expected to be in the collection. + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the collection does not contain any items. + Asserts that the does not throw any exception at all. + The current method or property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the collection contains at least 1 item. + Asserts that the throws an exception. + A reference to the method or property. + + The type of the exception it should throw. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. + + Returns an object that allows asserting additional members of the thrown exception. + - + - Asserts that the collection does not contain any duplicate items. + Asserts that the does not throw a particular exception. + The current method or property. + + The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. + - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that the collection does not contain any null items. + Asserts that the does not throw any exception at all. + The current method or property. - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Contains a number of methods to assert that an is in the expected state. - A params array with the expected elements. - + - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Contains a number of methods to assert that a reference type object is in the expected state. - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - + - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . + Asserts that the current object has not been initialized yet. - An with the elements that are not expected. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -545,19 +538,10 @@ Zero or more objects to format using the placeholders in . - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - + - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . + Asserts that the current object has been initialized. - An with the expected elements. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -566,12 +550,11 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . + Asserts that the object is of the specified type . - An with the unexpected elements. + The expected type of the object. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -580,10 +563,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection only contains items that are assignable to the type . + Asserts that the object is of the specified type . + + The type that the subject is supposed to be of. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -592,13 +578,180 @@ Zero or more objects to format using the placeholders in . - + - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. + Asserts that the object is assignable to a variable of type . - An with the expected elements. - + The type to which the object should be assignable. + The reason why the object should be assignable to the type. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Asserts that the is satisfied. + + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Asserts that the is satisfied. + + The predicate which must be statisfied by the . + The reason why the predicate should be satisfied. + The parameters used when formatting the . + An which can be used to chain assertions. + + + + Gets the object which value is being asserted. + + + + + Returns the type of the subject the assertion applies on. + + + + + Asserts that the collection does not contain any items. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains at least 1 item. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection does not contain any duplicate items. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection does not contain any null items. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection not to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the elements that are not expected. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection not to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the unexpected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current collection only contains items that are assignable to the type . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -730,10 +883,13 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has not been initialized yet with an actual collection. + Asserts that the current collection has the supplied at the + supplied . + The index where the element is expected + The expected element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -742,10 +898,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has been initialized with an actual collection. + Asserts that the current collection does not contain the supplied item. + The element that is not expected to be in the collection A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -754,13 +911,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection has the supplied at the - supplied . + Asserts that the collection shares one or more items with the specified . - The index where the element is expected - The expected element + The with the expected shared items. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -769,11 +924,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the current collection does not contain the supplied item. + Asserts that the collection does not share any items with the specified . - The element that is not expected to be in the collection + The to compare to. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -782,11 +937,21 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection shares one or more items with the specified . + Returns the type of the subject the assertion applies on. - The with the expected shared items. + + + + Contains a number of methods to assert that an is in the expectation state. + + + + + Asserts that the number of items in the collection matches the supplied amount. + + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -795,11 +960,11 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the collection does not share any items with the specified . + Asserts that the number of items in the collection matches a condition stated by the . - The to compare to. + A predicate that yields the number of items that is expected to be in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -808,11 +973,6 @@ Zero or more objects to format using the placeholders in . - - - Contains a number of methods to assert that an is in the expectation state. - - Asserts that two collections contain the same items in the same order, where equality is determined using a @@ -909,30 +1069,6 @@ Contains a number of methods to assert that an is in the expected state. - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - Asserts that the number of items in the dictionary matches the supplied amount. @@ -1168,9 +1304,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -1178,12 +1314,11 @@ Contains a number of methods to assert that an is in the expected state. - + - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. + Asserts that the number of items in the collection matches the supplied amount. - An object, or of objects that are expected to be in the collection. + The expected number of items in the collection. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -1192,16 +1327,177 @@ Zero or more objects to format using the placeholders in . - + - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + Asserts that the number of items in the collection matches a condition stated by the . + A predicate that yields the number of items that is expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + - + - Finds the first index at which the does not match the - string anymore, including the exact casing. - + Asserts that the current collection contains the specified object. Elements are compared + using their implementation. + + An object, or of objects that are expected to be in the collection. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all the same elements in the same order as the collection identified by + . Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + A params array with the expected elements. + + + + Expects the current collection to contain all elements of the collection identified by , + regardless of the order. Elements are compared using their . + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + + + Expects the current collection to contain the specified elements in the exact same order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Expects the current collection to contain the specified elements in any order. Elements are compared + using their implementation. + + An with the expected elements. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Asserts that the collection contains some extra items in addition to the original items. + + An of expectation items. + Additional items that are expectation to be contained by the collection. + + + + Gets the active configuration, + + + + + Gets or sets the mode on how Fluent Assertions will find custom implementations of + . + + + + + Gets or sets the assembly name to scan for custom value formatters in case + is set to . + + + + + Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. + + + + + Maintains the framework-specific services. + + + + + Finds the first index at which the does not match the + string anymore, including the exact casing. + @@ -1227,12 +1523,17 @@ Any string that is empty (including the original string) is ignored. + + + Changes the first character of a string to uppercase. + + Determines whether two objects refer to the same property. - + Finds the property by a case-sensitive name. @@ -1240,7 +1541,7 @@ Returns null if no such property exists. - + Determines whether the specified method has been annotated with a specific attribute. @@ -1248,186 +1549,92 @@ true if the specified method has attribute; otherwise, false. - + - Provides extension methods for monitoring and querying events. + Defines the modes in which custom implementations of are detected as configured + through . - + - Starts monitoring an object for its events. + Detection is disabled. - Thrown if eventSource is Null. - + - Asserts that an object has raised a particular event at least once. + Only custom value formatters exposed through the assembly set in + are detected. - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised a particular event at least once. + All custom value formatters in any assembly loaded in the current will be detected. - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Represents a collection of assertion results obtained through a . - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has not raised a particular event. + Adds the failures (if any) resulting from executing an assertion within a + identified by a key. - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - + - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. + Returns the closest match compared to the set identified by the provided or + an empty array if one of the results represents a succesful assertion. - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. + The closest match is the set that contains the least amount of failures, or no failures at all, and preferably + the set that is identified by the . - + - Asserts that all occurences of the event originated from the . + Gets a value indicating whether this collection contains a set without any failures at all. - + - Asserts that at least one occurrence of the event had an object matching a predicate. + Defines a step in the process of comparing two object graphs for structural equivalency. - + - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Returns an array of types appended with an EventRecorder reference at the beginning. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + - + - Returns T/F Dependent on a Type Being a Delegate. + Gets a value indicating whether this step can handle the current subject and/or expectation. - + - Returns the MethodInfo for the Delegate's "Invoke" Method. + Applies a step as part of the task to compare two objects for structural equality. + + Should return true if the subject matches the expectation or if no additional assertions + have to be executed. Should return false otherwise. + + + May throw when preconditions are not met or if it detects mismatching data. + @@ -1508,88 +1715,103 @@ Parameters for the event - + - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. + Defines a strategy for handling failures in a . - + - Gets an object that wraps and executes a conditional or unconditional verification. + Instructs the strategy to handle a assertion failure. - + - Throws a generic exception in case no other test harness is detected. + Discards and returns the failure messages that happened up to now. - + - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. + Will throw a combined exception for any failures have been collected since was called. - + - Throws a framework-specific exception to indicate a failing unit test. + Returns the messages for the assertion failures that happened until now. - + - Gets a value indicating whether the corresponding test framework is currently available. + Discards and returns the failure messages that happened up to now. - + - Throws a framework-specific exception to indicate a failing unit test. + Will throw a combined exception for any failures have been collected since was called. - + - Gets a value indicating whether the corresponding test framework is currently available. + Instructs the strategy to handle a assertion failure. - + - Throws a framework-specific exception to indicate a failing unit test. + Returns the messages for the assertion failures that happened until now. - + - Gets a value indicating whether the corresponding test framework is currently available. + Instructs the strategy to handle a assertion failure. - + - Provides a fluent API for verifying an arbitrary condition. + Discards and returns the failure messages that happened up to now. - + - Represents the phrase that can be used in as a placeholder for the reason of an assertion. + Will throw a combined exception for any failures have been collected since was called. - + - Initializes a new instance of the class. + Returns the messages for the assertion failures that happened until now. - + - Gets the name or identifier of the current subject, or a default value if the subject is not known. + Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - + - Specify the condition that must be satisfied. + Gets an object that wraps and executes a conditional or unconditional assertion. - If true the verification will be succesful. - + - Specify a predicate that with the condition that must be satisfied. + Represents an implicit or explicit scope within which multiple assertions can be collected. + + + + + Represents the phrase that can be used in as a placeholder for the reason of an assertion. + + + + + Initializes a new instance of the class. + + + + + Specify the condition that must be satisfied. + If true the assertion will be succesful. - + Specify the reason why you expect the condition to be true. @@ -1601,26 +1823,80 @@ Zero or more values to use for filling in any compatible placeholders. - + - Define the failure message for the verification. + Define the failure message for the assertion. If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with + defined through . Only 10 are supported in combination with a {reason}. The format string that represents the failure message. Optional arguments for the - + + + Discards and returns the failures that happened up to now. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Gets data associated with the current scope and identified by . + + + + + Indicates that every argument passed into is displayed on a separate line. + + + + + Determines whether data associated with an should be included in the assertion failure. + + + + + Represents a collection of data items that are associated with an . + + + + + Custom version of ICloneable that works on all frameworks. + + + - Indicates that every argument passed into is displayed on a separate line. + Creates a new object that is a copy of the current instance. + + + A new object that is a copy of this instance. + - + - Gets or sets the name of the subject for the next verification. + Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. + + + + + Throws a framework-specific exception to indicate a failing unit test. + + + + + Gets a value indicating whether the corresponding test framework is currently available. + + + + + Simulates the AppDomain class that is not available in Windows Store apps. @@ -1735,12 +2011,6 @@ specified . - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - Indicates whether the current can handle the specified . @@ -1767,7 +2037,7 @@ A that represents this instance. - + Indicates whether the current can handle the specified . @@ -1776,7 +2046,7 @@ true if the current can handle the specified value; otherwise, false. - + Returns a that represents this instance. @@ -1793,16 +2063,16 @@ A that represents this instance. - + - Indicates whether the current can handle the specified . + Determines whether this instance can handle the specified value. - The value for which to create a . + The value. - true if the current can handle the specified value; otherwise, false. + true if this instance can handle the specified value; otherwise, false. - + Returns a that represents this instance. @@ -1819,16 +2089,16 @@ A that represents this instance. - + - Determines whether this instance can handle the specified value. + Indicates whether the current can handle the specified . - The value. + The value for which to create a . - true if this instance can handle the specified value; otherwise, false. + true if the current can handle the specified value; otherwise, false. - + Returns a that represents this instance. @@ -1845,7 +2115,7 @@ A that represents this instance. - + Indicates whether the current can handle the specified . @@ -1854,7 +2124,7 @@ true if the current can handle the specified value; otherwise, false. - + Returns a that represents this instance. @@ -1923,6 +2193,11 @@ A that represents this instance. + + + Ensures a custom formatter is included in the chain, just before the default formatter is executed. + + Indicates whether the current can handle the specified . @@ -2001,6 +2276,32 @@ A that represents this instance. + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + Indicates whether the current can handle the specified . @@ -2053,11 +2354,6 @@ A that represents this instance. - - - Marks a static method as a kind of for a particular type. - - Indicates whether the current can handle the specified . @@ -2172,7 +2468,7 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. The object that is being extended. @@ -2191,7 +2487,45 @@ - Asserts a floating point value approximates another value as close as possible. + Asserts a double value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. + + The object that is being extended. + + The expected value to compare the actual value with. + + + The maximum amount of which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts a decimal value approximates another value as close as possible. The object that is being extended. @@ -2324,33 +2658,9 @@ Zero or more objects to format using the placeholders in . - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -2621,6 +2931,9 @@ The message must start with the exact text, including the casing of the characters.. + + The message must match exactly, including the casing of the characters. + @@ -2995,6 +3308,30 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is not false. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the value is not true. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that a nullable is in the expected state. @@ -3203,6 +3540,31 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current is within the specified number of milliseconds (default = 20 ms) + from the specified value. + + + Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, + use . + + + + + The expected time to compare the actual value with. + + + The maximum amount of milliseconds which the two values may differ. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. @@ -3232,6 +3594,19 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the value is equal to the specified value. + + The expected value + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Contains a number of methods to assert that an is in the expected state. @@ -3289,55 +3664,10 @@ Zero or more values to use for filling in any compatible placeholders. - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - + - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. + Returns the type of the subject the assertion applies on. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - @@ -3475,6 +3805,36 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string matches a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not match a regular expression. + + + The regular expression with which the subject is matched. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that a string starts exactly with the specified value, @@ -3489,12 +3849,68 @@ Zero or more objects to format using the placeholders in . + + + Asserts that a string does not start with the specified value, + including the casing and any leading or trailing whitespace. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. + Asserts that a string starts with the specified , + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not start with the specified value, + including any leading or trailing whitespace, with the exception of the casing. + + The string that the subject is not expected to start with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string ends exactly with the specified , + including the casing and any leading or trailing whitespace. + + The string that the subject is expected to end with. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that a string does not end exactly with the specified , + including the casing and any leading or trailing whitespace. - The string that the subject is expected to start with. + The string that the subject is not expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3503,10 +3919,10 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. + Asserts that a string ends with the specified , + including any leading or trailing whitespace, with the exception of the casing. The string that the subject is expected to end with. @@ -3517,12 +3933,12 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string ends with the specified , + Asserts that a string does not end with the specified , including any leading or trailing whitespace, with the exception of the casing. - The string that the subject is expected to end with. + The string that the subject is not expected to end with. A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -3626,33 +4042,33 @@ Zero or more objects to format using the placeholders in . - + - Asserts that a string is null. + Asserts that a string is neither null nor . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is not null. + Asserts that a string is either null or . - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. + A formatted phrase explaining why the assertion should be satisfied. If the phrase does not + start with the word because, it is prepended to the message. - Zero or more objects to format using the placeholders in . + Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3662,9 +4078,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is either null or . + Asserts that a string is neither null nor nor white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3674,9 +4090,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Asserts that a string is neither null nor nor white space + Asserts that a string is either null or or white space A formatted phrase explaining why the assertion should be satisfied. If the phrase does not @@ -3698,9 +4114,9 @@ Zero or more values to use for filling in any compatible placeholders. - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -3803,9 +4219,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the that is being asserted. + Returns the type of the subject the assertion applies on. @@ -3910,6 +4326,11 @@ Gets the exception object of the exception thrown. + + + Returns the type of the subject the assertion applies on. + + Provides methods for asserting that the execution time of an satifies certain conditions. @@ -4021,29 +4442,12 @@ 2 - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4100,6 +4504,15 @@ Throws if the rule did support the data type but assertion fails. + + + Returns a string that represents the current object. + + + A string that represents the current object. + + 2 + Provides the required information for executing an equality assertion between a subject and an expectation. @@ -4255,10 +4668,15 @@ Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - + - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. + + + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. @@ -4267,6 +4685,12 @@ or collections. + + + Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, + and includes the entire object graph. The names of the properties between the subject and expectation must match. + + Adds all public properties of the subject as far as they are defined on the declared type. @@ -4317,6 +4741,14 @@ Causes the structural equality check to include nested collections and complex types. + + + Causes the structural equality check to exclude nested collections and complex types. + + + Behaves similarly to the old property assertions API. + + Causes the structural equality check to ignore any cyclic references. @@ -4337,17 +4769,34 @@ - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. + Adds a selection rule to the ones already added by default, and which is evaluated after all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules. - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules + Adds a matching rule to the ones already added by default, and which is evaluated before all existing rules + + + + + Causes all collections to be compared in the order in which the items appear in the expectation. + + + + + Causes the collection identified by to be compared in the order + in which the items appear in the expectation. + + + + + Causes the collection identified by the provided to be compared in the order + in which the items appear in the expectation. @@ -4359,29 +4808,35 @@ 2 - + Gets an ordered collection of selection rules that define what properties are included. - + Gets an ordered collection of matching rules that determine which subject properties are matched with which expectation properties. - + Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with expectation properties. - + + + Gets an ordered collection of rules that determine whether or not the order of collections is important. By default, + ordering is irrelevant. + + + Gets value indicating whether the equality check will include nested collections and complex types. - + Gets value indicating how cyclic references should be handled. By default, it will throw an exception. @@ -4396,7 +4851,7 @@ Allows overriding the way structural equality is applied to (nested) objects of tyoe - + Allows overriding the way structural equality is applied to particular properties. @@ -4405,12 +4860,77 @@ override applies. - + + + Defines a rule that is used to determine whether the order of items in collections is relevant or not. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + An ordering rule that basically states that the order of items in all collections is important. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Represents a rule for determining whether or not a certain collection within the object graph should be compared using + strict ordering. + + + + + Determines if ordering of the property refered to by the current is relevant. + + + + + Collection of s. + + + + + Returns an enumerator that iterates through the collection. + + + A that can be used to iterate through the collection. + + 1 + + + + Returns an enumerator that iterates through a collection. + + + An object that can be used to iterate through the collection. + + 2 + + + + Determines whether the rules in this collection dictate strict ordering during the equivalency assertion on + the collection pointed to by . + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4437,12 +4957,12 @@ Cyclic references will result in an exception. - + - Gets a value indicating whether this step can handle the current subject and/or expectation. + Gets a value indicating whether this step can handle the verificationScope subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4454,12 +4974,17 @@ May throw when preconditions are not met or if it detects mismatching data. - + + + Executes a single equivalency assertion on two collections, optionally recursive and with or without strict ordering. + + + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4555,15 +5080,9 @@ Provides information on a particular property during an assertion for structural equality of two object graphs. - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4577,11 +5096,6 @@ Zero or more objects to format using the placeholders in . - - - Gets a verification object associated with the current and . - - Gets a value indicating whether the current context represents the root of the object graph. @@ -4702,12 +5216,12 @@ Zero or more objects to format using the placeholders in . - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -4740,15 +5254,9 @@ Gets the value of the - - - Gets the property of the that was matched against the , - or null if is true. - - - Gets the value of the . + Gets the value of the . @@ -4778,22 +5286,70 @@ Gets the run-time type of the current object. - + - Gets a verification object associated with the current and . + Is responsible for validating the equality of one or more properties of a subject with another object. - + - Is responsible for validating the equality of one or more properties of a subject with another object. + Provides access the list of steps that are executed in the order of appearance during an equivalency test. + + + + + Keeps track of objects and their location within an object graph so that cyclic references can be detected + and handled upon. + + + + + Determines whether the specified object reference is a cyclic reference to the same object earlier in the + equivalency validation. + + + The behavior of a cyclic reference is determined byt he constructor + parameter. + + + + + Creates a new object that is a copy of the current instance. + + + + A new object that is a copy of this instance. + + + + + Represents an object tracked by the including it's location within an object graph. + + + + + Determines whether the specified is equal to the current . + + + true if the specified is equal to the current ; otherwise, false. + + The to compare with the current . 2 + + + + Serves as a hash function for a particular type. + + A hash code for the current . + + 2 - + Gets a value indicating whether this step can handle the current subject and/or expectation. - + Applies a step as part of the task to compare two objects for structural equality. @@ -5008,11 +5564,32 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected methods are decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of methods of a type through reflection. @@ -5107,6 +5684,18 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the selected properties have a setter. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the selected methods are decorated with the specified . @@ -5124,6 +5713,11 @@ Gets the object which value is being asserted. + + + Returns the type of the subject the assertion applies on. + + Allows for fluent selection of properties of a type through reflection. @@ -5277,7 +5871,51 @@ Zero or more objects to format using the placeholders in . - + + + Returns the type of the subject the assertion applies on. + + + + + Contains a number of methods to assert that all s in a + meet certain expectations. + + + + + Initializes a new instance of the class. + + + + + Asserts that the current is decorated with the specified . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current is decorated with an attribute of type + that matches the specified . + + + The predicate that the attribute must match. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + Gets the object which value is being asserted. @@ -5335,50 +5973,6 @@ 2 - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - Contains a number of methods to assert that an is in the expected state. @@ -5429,40 +6023,6 @@ Zero or more objects to format using the placeholders in . - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - Asserts that the current has the specified value. @@ -5482,9 +6042,9 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Returns the type of the subject the assertion applies on. @@ -5539,38 +6099,46 @@ Zero or more objects to format using the placeholders in . - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - + - Asserts that the is null. + Asserts that the current is equivalent to the document, + using its implementation. + The expected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - + - Asserts that the is not null. + Asserts that the current is not equivalent to the document, + using its implementation. + The unexpected document - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . @@ -5580,6 +6148,13 @@ The name of the expected root element of the current document. + + + Asserts that the current has a root element with the specified + name. + + The name of the expected root element of the current document. + Asserts that the current has a root element with the specified @@ -5594,6 +6169,20 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has a root element with the specified + name. + + The full name of the expected root element of the current document. + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the element of the current has a direct @@ -5603,6 +6192,15 @@ The name of the expected child element of the current document's Root element. + + + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + Asserts that the element of the current has a direct @@ -5619,9 +6217,25 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the element of the current has a direct + child element with the specified name. + + + The full name of the expected child element of the current document's Root element. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. @@ -5674,38 +6288,65 @@ Zero or more objects to format using the placeholders in . - + + + Asserts that the current is equivalent to the element, + using its implementation. + + The expected element + + + + Asserts that the current is equivalent to the element, + using its implementation. + + The expected element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + - Asserts that the is null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - + - Asserts that the is null. + Asserts that the current is not equivalent to the element, + using its implementation. + The unexpected element - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . - + - Asserts that the is not null. + Asserts that the current has the specified value. + The expected value - + - Asserts that the is not null. + Asserts that the current has the specified value. + The expected value - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. - Zero or more values to use for filling in any compatible placeholders. + Zero or more objects to format using the placeholders in . @@ -5716,6 +6357,14 @@ The name of the expected attribute The value of the expected attribute + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + Asserts that the current has an attribute with the specified @@ -5731,6 +6380,21 @@ Zero or more objects to format using the placeholders in . + + + Asserts that the current has an attribute with the specified + and . + + The name of the expected attribute + The value of the expected attribute + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + Asserts that the current has a direct child element with the specified @@ -5738,12 +6402,19 @@ The name of the expected child element + + + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + Asserts that the current has a direct child element with the specified name. - The name of the expected child element + The name of the expected child element A formatted phrase as is supported by explaining why the assertion is needed. If the phrase does not start with the word because, it is prepended automatically. @@ -5752,9 +6423,95 @@ Zero or more objects to format using the placeholders in . - + - Gets the object which value is being asserted. + Asserts that the current has a direct child element with the specified + name. + + The name of the expected child element + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Returns the type of the subject the assertion applies on. + + + + + Indicates whether the current can handle the specified . + + The value for which to create a . + + true if the current can handle the specified value; otherwise, false. + + + + + Returns a that represents this instance. + + The value for which to create a . + + + A collection of objects that + + + The level of nesting for the supplied value. This is used for indenting the format string for objects that have + no override. + + + A that represents this instance. + + + + + Contains a number of methods to assert that an asynchronous method yields the expected result. + + + + + Asserts that the current throws an exception of type . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current does not throw any exception. + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Asserts that the current does not throw an exception of type . + + + A formatted phrase as is supported by explaining why the assertion + is needed. If the phrase does not start with the word because, it is prepended automatically. + + + Zero or more objects to format using the placeholders in . + + + + + Gets the that is being asserted. diff --git a/dep/NUnit.2.6.1/NUnit.2.6.1.nuspec b/dep/NUnit.2.6.1/NUnit.2.6.1.nuspec deleted file mode 100644 index 33d7c0d1838..00000000000 --- a/dep/NUnit.2.6.1/NUnit.2.6.1.nuspec +++ /dev/null @@ -1,26 +0,0 @@ - - - - NUnit - 2.6.1 - NUnit - Charlie Poole - Charlie Poole - http://nunit.org/nuget/license.html - http://nunit.org/ - http://nunit.org/nuget/nunit_32x32.png - false - NUnit features a fluent assert syntax, parameterized, generic and theory tests and is user-extensible. A number of runners, both from the NUnit project and by third parties, are able to execute NUnit tests. - -Version 2.6 is the seventh major release of this well-known and well-tested programming tool. - -This package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner. - NUnit is a unit-testing framework for all .Net languages with a strong TDD focus. - Version 2.6 is the seventh major release of NUnit. - -Unlike earlier versions, this package includes only the framework assembly. You will need to install the NUnit.Runners package unless you are using a third-party runner. - -The nunit.mocks assembly is now provided by the NUnit.Mocks package. The pnunit.framework assembly is provided by the pNUnit package. - test testing tdd framework fluent assert theory plugin addin - - \ No newline at end of file diff --git a/dep/NUnit.2.6.1/lib/nunit.framework.dll b/dep/NUnit.2.6.1/lib/nunit.framework.dll deleted file mode 100644 index 215767d2fb3..00000000000 Binary files a/dep/NUnit.2.6.1/lib/nunit.framework.dll and /dev/null differ diff --git a/dep/NUnit.2.6.3/lib/nunit.framework.dll b/dep/NUnit.2.6.3/lib/nunit.framework.dll new file mode 100644 index 00000000000..780727f219d Binary files /dev/null and b/dep/NUnit.2.6.3/lib/nunit.framework.dll differ diff --git a/dep/NUnit.2.6.1/lib/nunit.framework.xml b/dep/NUnit.2.6.3/lib/nunit.framework.xml similarity index 97% rename from dep/NUnit.2.6.1/lib/nunit.framework.xml rename to dep/NUnit.2.6.3/lib/nunit.framework.xml index 7b0e798cada..f40847c7ac8 100644 --- a/dep/NUnit.2.6.1/lib/nunit.framework.xml +++ b/dep/NUnit.2.6.3/lib/nunit.framework.xml @@ -4,10889 +4,10957 @@ nunit.framework - + - Attribute used to apply a category to a test + The different targets a test action attribute can be applied to - + - The name of the category + Default target, which is determined by where the action attribute is attached - + - Construct attribute for a given category based on - a name. The name may not contain the characters ',', - '+', '-' or '!'. However, this is not checked in the - constructor since it would cause an error to arise at - as the test was loaded without giving a clear indication - of where the problem is located. The error is handled - in NUnitFramework.cs by marking the test as not - runnable. + Target a individual test case - The name of the category - + - Protected constructor uses the Type name as the name - of the category. + Target a suite of test cases - + - The name of the category + Delegate used by tests that execute code and + capture any thrown exception. - + - Used to mark a field for use as a datapoint when executing a theory - within the same fixture that requires an argument of the field's Type. + The Assert class contains a collection of static methods that + implement the most common assertions used in NUnit. - + - Used to mark an array as containing a set of datapoints to be used - executing a theory within the same fixture that requires an argument - of the Type of the array elements. + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. - + - Attribute used to provide descriptive text about a - test case or fixture. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + - + - Construct the attribute + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. - Text describing the test + + - + - Gets the test description + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + The message to initialize the with. + Arguments to be used in formatting the message - + - Enumeration indicating how the expected message parameter is to be used + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + The message to initialize the with. - - Expect an exact match - - - Expect a message containing the parameter string - - - Match the regular expression provided as a parameter - - - Expect a message that starts with the parameter string - - + - ExpectedExceptionAttribute + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. - - + - Constructor for a non-specific exception + Throws an with the message and arguments + that are passed in. This is used by the other Assert functions. + The message to initialize the with. + Arguments to be used in formatting the message - + - Constructor for a given type of exception + Throws an with the message that is + passed in. This is used by the other Assert functions. - The type of the expected exception + The message to initialize the with. - + - Constructor for a given exception name + Throws an . + This is used by the other Assert functions. - The full name of the expected exception - + - Gets or sets the expected exception type + Throws an with the message and arguments + that are passed in. This causes the test to be reported as ignored. + The message to initialize the with. + Arguments to be used in formatting the message - + - Gets or sets the full Type name of the expected exception + Throws an with the message that is + passed in. This causes the test to be reported as ignored. + The message to initialize the with. - + - Gets or sets the expected message text + Throws an . + This causes the test to be reported as ignored. - + - Gets or sets the user message displayed in case of failure + Throws an with the message and arguments + that are passed in. This causes the test to be reported as inconclusive. + The message to initialize the with. + Arguments to be used in formatting the message - + - Gets or sets the type of match to be performed on the expected message + Throws an with the message that is + passed in. This causes the test to be reported as inconclusive. + The message to initialize the with. - + - Gets the name of a method to be used as an exception handler + Throws an . + This causes the test to be reported as Inconclusive. - + - ExplicitAttribute marks a test or test fixture so that it will - only be run if explicitly executed from the gui or command line - or if it is included by use of a filter. The test will not be - run simply because an enclosing suite is run. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied - + - Default constructor + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied + The message that will be displayed on failure - + - Constructor with a reason + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - The reason test is marked explicit + The actual value to test + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - The reason test is marked explicit - + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message - + - Attribute used to mark a test that is to be ignored. - Ignored tests result in a warning message when the - tests are run. + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition + The message to display if the condition is false - + - Constructs the attribute without giving a reason - for ignoring the test. + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition - + - Constructs the attribute giving a reason for ignoring the test + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - The reason for ignoring the test + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied - + - The reason for ignoring a test + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure - + - Abstract base for Attributes that are used to include tests - in the test run based on environmental settings. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Constructor with no included items specified, for use - with named property syntax. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied - + - Constructor taking one or more included items + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. - Comma-delimited list of included items + The actual value to test + A Constraint to be applied + The message that will be displayed on failure - + - Name of the item that is needed in order for - a test to run. Multiple itemss may be given, - separated by a comma. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Name of the item to be excluded. Multiple items - may be given, separated by a comma. + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + A TestDelegate to be executed + A ThrowsConstraint used in the test - + - The reason for including or excluding the test + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + Used as a synonym for That in rare cases where a private setter + causes a Visual Basic compilation error. + The actual value to test + A Constraint to be applied - + - PlatformAttribute is used to mark a test fixture or an - individual method as applying to a particular platform only. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + Used as a synonym for That in rare cases where a private setter + causes a Visual Basic compilation error. + The actual value to test + A Constraint to be applied + The message that will be displayed on failure - + - Constructor with no platforms specified, for use - with named property syntax. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + Used as a synonym for That in rare cases where a private setter + causes a Visual Basic compilation error. + + This method is provided for use by VB developers needing to test + the value of properties with private setters. + + The actual value to test + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Constructor taking one or more platforms + Verifies that a delegate throws a particular exception when called. - Comma-deliminted list of platforms + A constraint to be satisfied by the exception + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - CultureAttribute is used to mark a test fixture or an - individual method as applying to a particular Culture only. + Verifies that a delegate throws a particular exception when called. + A constraint to be satisfied by the exception + A TestDelegate + The message that will be displayed on failure - + - Constructor with no cultures specified, for use - with named property syntax. + Verifies that a delegate throws a particular exception when called. + A constraint to be satisfied by the exception + A TestDelegate - + - Constructor taking one or more cultures + Verifies that a delegate throws a particular exception when called. - Comma-deliminted list of cultures + The exception Type expected + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Marks a test to use a combinatorial join of any argument data - provided. NUnit will create a test case for every combination of - the arguments provided. This can result in a large number of test - cases and so should be used judiciously. This is the default join - type, so the attribute need not be used except as documentation. + Verifies that a delegate throws a particular exception when called. + The exception Type expected + A TestDelegate + The message that will be displayed on failure - + - PropertyAttribute is used to attach information to a test as a name/value pair.. + Verifies that a delegate throws a particular exception when called. + The exception Type expected + A TestDelegate - + - Construct a PropertyAttribute with a name and string value + Verifies that a delegate throws a particular exception when called. - The name of the property - The property value + Type of the expected exception + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Construct a PropertyAttribute with a name and int value + Verifies that a delegate throws a particular exception when called. - The name of the property - The property value + Type of the expected exception + A TestDelegate + The message that will be displayed on failure - + - Construct a PropertyAttribute with a name and double value + Verifies that a delegate throws a particular exception when called. - The name of the property - The property value + Type of the expected exception + A TestDelegate - + - Constructor for derived classes that set the - property dictionary directly. + Verifies that a delegate throws an exception when called + and returns it. + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Constructor for use by derived classes that use the - name of the type as the property name. Derived classes - must ensure that the Type of the property value is - a standard type supported by the BCL. Any custom - types will cause a serialization Exception when - in the client. + Verifies that a delegate throws an exception when called + and returns it. + A TestDelegate + The message that will be displayed on failure - + - Gets the property dictionary for this attribute + Verifies that a delegate throws an exception when called + and returns it. + A TestDelegate - + - Default constructor + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Marks a test to use pairwise join of any argument data provided. - NUnit will attempt too excercise every pair of argument values at - least once, using as small a number of test cases as it can. With - only two arguments, this is the same as a combinatorial join. + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure - + - Default constructor + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate - + - Marks a test to use a sequential join of any argument data - provided. NUnit will use arguements for each parameter in - sequence, generating test cases up to the largest number - of argument values provided and using null for any arguments - for which it runs out of values. Normally, this should be - used with the same number of arguments for each parameter. + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Default constructor + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate + The message that will be displayed on failure - + - Summary description for MaxTimeAttribute. + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + The expected Exception Type + A TestDelegate - + - Construct a MaxTimeAttribute, given a time in milliseconds. + Verifies that a delegate does not throw an exception - The maximum elapsed time in milliseconds + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message - + - RandomAttribute is used to supply a set of random values - to a single parameter of a parameterized test. + Verifies that a delegate does not throw an exception. + A TestDelegate + The message that will be displayed on failure - + - ValuesAttribute is used to provide literal arguments for - an individual parameter of a test. + Verifies that a delegate does not throw an exception. + A TestDelegate - + - Abstract base class for attributes that apply to parameters - and supply data for the parameter. + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the data to be provided to the specified parameter + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition + The message to display in case of failure - + - The collection of data to be returned. Must - be set by any derived attribute classes. - We use an object[] so that the individual - elements may have their type changed in GetData - if necessary. + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition - + - Construct with one argument + Asserts that a condition is true. If the condition is false the method throws + an . - + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct with two arguments + Asserts that a condition is true. If the condition is false the method throws + an . - - + The evaluated condition + The message to display in case of failure - + - Construct with three arguments + Asserts that a condition is true. If the condition is false the method throws + an . - - - + The evaluated condition - + - Construct with an array of arguments - - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Get the collection of values to be used as arguments - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure - + - Construct a set of doubles from 0.0 to 1.0, - specifying only the count. - - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition - + - Construct a set of doubles from min to max - - - - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a set of ints from min to max - - - - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure - + - Get the collection of values to be used as arguments - + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition - + - RangeAttribute is used to supply a range of values to an - individual parameter of a parameterized test. + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a range of ints using default step of 1 + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - - + The object that is to be tested + The message to display in case of failure - + - Construct a range of ints specifying the step size + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - - - + The object that is to be tested - + - Construct a range of longs + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - - - + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a range of doubles + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - - - + The object that is to be tested + The message to display in case of failure - + - Construct a range of floats + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. - - - + The object that is to be tested - + - RepeatAttribute may be applied to test case in order - to run it multiple times. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a RepeatAttribute + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. - The number of times to run the test + The object that is to be tested + The message to display in case of failure - + - RequiredAddinAttribute may be used to indicate the names of any addins - that must be present in order to run some or all of the tests in an - assembly. If the addin is not loaded, the entire assembly is marked - as NotRunnable. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested - + - Initializes a new instance of the class. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. - The required addin. + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the name of required addin. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. - The required addin name. + The object that is to be tested + The message to display in case of failure - + - Summary description for SetCultureAttribute. + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + The object that is to be tested - + - Construct given the name of a culture + Verifies that two ints are equal. If they are not, then an + is thrown. - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Summary description for SetUICultureAttribute. + Verifies that two ints are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Construct given the name of a culture + Verifies that two ints are equal. If they are not, then an + is thrown. - + The expected value + The actual value - + - SetUpAttribute is used in a TestFixture to identify a method - that is called immediately before each test is run. It is - also used in a SetUpFixture to identify the method that is - called once, before any of the subordinate tests are run. + Verifies that two longs are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Attribute used to mark a class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. + Verifies that two longs are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Attribute used to mark a static (shared in VB) property - that returns a list of tests. + Verifies that two longs are equal. If they are not, then an + is thrown. + The expected value + The actual value - + - Attribute used in a TestFixture to identify a method that is - called immediately after each test is run. It is also used - in a SetUpFixture to identify the method that is called once, - after all subordinate tests have run. In either case, the method - is guaranteed to be called, even if an exception is thrown. + Verifies that two unsigned ints are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Provide actions to execute before and after tests. + Verifies that two unsigned ints are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. + Verifies that two unsigned ints are equal. If they are not, then an + is thrown. + The expected value + The actual value - + - Executed before each test is run + Verifies that two unsigned longs are equal. If they are not, then an + is thrown. - Provides details about the test that is going to be run. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Executed after each test is run + Verifies that two unsigned longs are equal. If they are not, then an + is thrown. - Provides details about the test that has just been run. + The expected value + The actual value + The message to display in case of failure - + - Provides the target for the action attribute + Verifies that two unsigned longs are equal. If they are not, then an + is thrown. - The target for the action attribute + The expected value + The actual value - + - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. + Verifies that two decimals are equal. If they are not, then an + is thrown. - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Descriptive text for this test + Verifies that two decimals are equal. If they are not, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. + Verifies that two decimals are equal. If they are not, then an + is thrown. + The expected value + The actual value - + - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - NOTE: This interface is used in both the framework - and the core, even though that results in two different - types. However, sharing the source code guarantees that - the various implementations will be compatible and that - the core is able to reflect successfully over the - framework implementations of ITestCaseData. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the argument list to be provided to the test + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure - + - Gets the expected result + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual - + - Indicates whether a result has been specified. - This is necessary because the result may be - null, so it's value cannot be checked. + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the expected exception Type + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure - + - Gets the FullName of the expected exception + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual - + - Gets the name to be used for the test + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the description of the test + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure - + - Gets a value indicating whether this is ignored. + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. - true if ignored; otherwise, false. + The value that is expected + The actual value - + - Gets a value indicating whether this is explicit. + Verifies that two ints are not equal. If they are equal, then an + is thrown. - true if explicit; otherwise, false. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets the ignore reason. + Verifies that two ints are not equal. If they are equal, then an + is thrown. - The ignore reason. + The expected value + The actual value + The message to display in case of failure - + - Construct a TestCaseAttribute with a list of arguments. - This constructor is not CLS-Compliant + Verifies that two ints are not equal. If they are equal, then an + is thrown. - + The expected value + The actual value - + - Construct a TestCaseAttribute with a single argument + Verifies that two longs are not equal. If they are equal, then an + is thrown. - + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a TestCaseAttribute with a two arguments + Verifies that two longs are not equal. If they are equal, then an + is thrown. - - + The expected value + The actual value + The message to display in case of failure - + - Construct a TestCaseAttribute with a three arguments + Verifies that two longs are not equal. If they are equal, then an + is thrown. - - - + The expected value + The actual value - + - Gets the list of arguments to a test case + Verifies that two unsigned ints are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the expected result. + Verifies that two unsigned ints are not equal. If they are equal, then an + is thrown. - The result. + The expected value + The actual value + The message to display in case of failure - + - Gets the expected result. + Verifies that two unsigned ints are not equal. If they are equal, then an + is thrown. - The result. + The expected value + The actual value - + - Gets a flag indicating whether an expected - result has been set. + Verifies that two unsigned longs are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets a list of categories associated with this test; + Verifies that two unsigned longs are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Gets or sets the category associated with this test. - May be a single category or a comma-separated list. + Verifies that two unsigned longs are not equal. If they are equal, then an + is thrown. + The expected value + The actual value - + - Gets or sets the expected exception. + Verifies that two decimals are not equal. If they are equal, then an + is thrown. - The expected exception. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the name the expected exception. + Verifies that two decimals are not equal. If they are equal, then an + is thrown. - The expected name of the exception. + The expected value + The actual value + The message to display in case of failure - + - Gets or sets the expected message of the expected exception + Verifies that two decimals are not equal. If they are equal, then an + is thrown. - The expected message of the exception. + The expected value + The actual value - + - Gets or sets the type of match to be performed on the expected message + Verifies that two floats are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the description. + Verifies that two floats are not equal. If they are equal, then an + is thrown. - The description. + The expected value + The actual value + The message to display in case of failure - + - Gets or sets the name of the test. + Verifies that two floats are not equal. If they are equal, then an + is thrown. - The name of the test. + The expected value + The actual value - + - Gets or sets the ignored status of the test + Verifies that two doubles are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the ignored status of the test + Verifies that two doubles are not equal. If they are equal, then an + is thrown. + The expected value + The actual value + The message to display in case of failure - + - Gets or sets the explicit status of the test + Verifies that two doubles are not equal. If they are equal, then an + is thrown. + The expected value + The actual value - + - Gets or sets the reason for not running the test + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the reason for not running the test. - Set has the side effect of marking the test as ignored. + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. - The ignore reason. + The value that is expected + The actual value + The message to display in case of failure - + - FactoryAttribute indicates the source to be used to - provide test cases for a test method. + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + The value that is expected + The actual value - + - Construct with the name of the factory - for use with languages - that don't support params arrays. + Asserts that two objects refer to the same object. If they + are not the same an is thrown. - An array of the names of the factories that will provide data + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct with a Type and name - for use with languages - that don't support params arrays. + Asserts that two objects refer to the same object. If they + are not the same an is thrown. - The Type that will provide data - The name of the method, property or field that will provide data + The expected object + The actual object + The message to display in case of failure - + - The name of a the method, property or fiend to be used as a source + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + The expected object + The actual object - + - A Type to be used as a source + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message - + - Gets or sets the category associated with this test. - May be a single category or a comma-separated list. + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object + The message to display in case of failure - - - [TestFixture] - public class ExampleClass - {} - - - + - Default constructor + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + The expected object + The actual object - + - Construct with a object[] representing a set of arguments. - In .NET 2.0, the arguments may later be separated into - type arguments and constructor arguments. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Descriptive text for this fixture + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested + The message to display in case of failure - + - Gets and sets the category for this fixture. - May be a comma-separated list of categories. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested - + - Gets a list of categories for this fixture + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - The arguments originally provided to the attribute + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + The value that is to be tested + The message to display in case of failure - + - Gets or sets a value indicating whether this should be ignored. + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. - true if ignore; otherwise, false. + The value that is to be tested - + - Gets or sets the ignore reason. May set Ignored as a side effect. + Assert that a string is empty - that is equal to string.Empty - The ignore reason. + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. + Assert that a string is empty - that is equal to string.Empty + The string to be tested + The message to display in case of failure - + - Attribute used to identify a method that is - called before any tests in a fixture are run. + Assert that a string is empty - that is equal to string.Empty + The string to be tested - + - Attribute used to identify a method that is called after - all the tests in a fixture have run. The method is - guaranteed to be called, even if an exception is thrown. + Assert that an array, list or other collection is empty + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message - + - Adding this attribute to a method within a - class makes the method callable from the NUnit test runner. There is a property - called Description which is optional which you can provide a more detailed test - description. This class cannot be inherited. + Assert that an array, list or other collection is empty - - - [TestFixture] - public class Fixture - { - [Test] - public void MethodToTest() - {} - - [Test(Description = "more detailed description")] - publc void TestDescriptionMethod() - {} - } - - + An array, list or other collection implementing ICollection + The message to display in case of failure - + - Used on a method, marks the test with a timeout value in milliseconds. - The test will be run in a separate thread and is cancelled if the timeout - is exceeded. Used on a method or assembly, sets the default timeout - for all contained test methods. + Assert that an array, list or other collection is empty + An array, list or other collection implementing ICollection - + - Construct a TimeoutAttribute given a time in milliseconds + Assert that a string is not empty - that is not equal to string.Empty - The timeout value in milliseconds + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Marks a test that must run in the STA, causing it - to run in a separate thread if necessary. - - On methods, you may also use STAThreadAttribute - to serve the same purpose. + Assert that a string is not empty - that is not equal to string.Empty + The string to be tested + The message to display in case of failure - + - Construct a RequiresSTAAttribute + Assert that a string is not empty - that is not equal to string.Empty + The string to be tested - + - Marks a test that must run in the MTA, causing it - to run in a separate thread if necessary. - - On methods, you may also use MTAThreadAttribute - to serve the same purpose. + Assert that an array, list or other collection is not empty + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a RequiresMTAAttribute + Assert that an array, list or other collection is not empty + An array, list or other collection implementing ICollection + The message to display in case of failure - + - Marks a test that must run on a separate thread. + Assert that an array, list or other collection is not empty + An array, list or other collection implementing ICollection - + - Construct a RequiresThreadAttribute + Assert that a string is either null or equal to string.Empty + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a RequiresThreadAttribute, specifying the apartment + Assert that a string is either null or equal to string.Empty + The string to be tested + The message to display in case of failure - + - ValueSourceAttribute indicates the source to be used to - provide data for one parameter of a test method. + Assert that a string is either null or equal to string.Empty + The string to be tested - + - Construct with the name of the factory - for use with languages - that don't support params arrays. + Assert that a string is not null or empty - The name of the data source to be used + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct with a Type and name - for use with languages - that don't support params arrays. + Assert that a string is not null or empty - The Type that will provide data - The name of the method, property or field that will provide data + The string to be tested + The message to display in case of failure - + - The name of a the method, property or fiend to be used as a source + Assert that a string is not null or empty + The string to be tested - + - A Type to be used as a source + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination - + - The IConstraintExpression interface is implemented by all - complete and resolvable constraints and expressions. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - Return the top-level constraint for this expression + Asserts that an object may be assigned a value of a given Type. - + The expected Type. + The object under examination + The message to display in case of failure - + - Static UnsetObject used to detect derived constraints - failing to set the actual value. + Asserts that an object may be assigned a value of a given Type. + The expected Type. + The object under examination - + - The actual value being tested against a constraint + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - The display name of this Constraint for use by ToString() + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Argument fields used by ToString(); + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination - + - The builder holding this constraint + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a constraint with no arguments + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination + The message to display in case of failure - + - Construct a constraint with one argument + Asserts that an object may not be assigned a value of a given Type. + The expected Type. + The object under examination - + - Construct a constraint with two arguments + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Sets the ConstraintBuilder holding this constraint + Asserts that an object is an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the constraint and the actual value to the writer, which - then displays the constraint description and the value. - - Constraints that need to provide additional details, - such as where the error occured can override this. + Asserts that an object is an instance of a given type. - The MessageWriter on which to display the message + The expected Type + The object being examined - + - Test whether the constraint is satisfied by a given value + Asserts that an object is an instance of a given type. - The value to be tested - True for success, false for failure + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test whether the constraint is satisfied by an - ActualValueDelegate that returns the value to be tested. - The default implementation simply evaluates the delegate - but derived classes may override it to provide for delayed - processing. + Asserts that an object is an instance of a given type. - An ActualValueDelegate - True for success, false for failure + The expected Type + The object being examined + The message to display in case of failure - + - Test whether the constraint is satisfied by a given reference. - The default implementation simply dereferences the value but - derived classes may override it to provide for delayed processing. + Asserts that an object is an instance of a given type. - A reference to the value to be tested - True for success, false for failure + The expected Type + The object being examined - + - Write the constraint description to a MessageWriter + Asserts that an object is an instance of a given type. - The writer on which the description is displayed + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Asserts that an object is an instance of a given type. - The writer on which the actual value is displayed + The expected Type + The object being examined + The message to display in case of failure - + - Default override of ToString returns the constraint DisplayName - followed by any arguments within angle brackets. + Asserts that an object is an instance of a given type. - + The expected Type + The object being examined - + - Returns the string representation of this constraint + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined - + - This operator creates a constraint that is satisfied if the - argument constraint is not satisfied. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a DelayedConstraint with the specified delay time. + Asserts that an object is not an instance of a given type. - The delay in milliseconds. - + The expected Type + The object being examined + The message to display in case of failure - + - Returns a DelayedConstraint with the specified delay time - and polling interval. + Asserts that an object is not an instance of a given type. - The delay in milliseconds. - The interval at which to test the constraint. - + The expected Type + The object being examined - + - The display name of this Constraint for use by ToString(). - The default value is the name of the constraint with - trailing "Constraint" removed. Derived classes may set - this to another name in their constructors. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a ConstraintExpression by appending And - to the current constraint. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined + The message to display in case of failure - + - Returns a ConstraintExpression by appending And - to the current constraint. + Asserts that an object is not an instance of a given type. + The expected Type + The object being examined - + - Returns a ConstraintExpression by appending Or - to the current constraint. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Class used to detect any derived constraints - that fail to set the actual value in their - Matches override. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Constructs an AttributeExistsConstraint for a specific attribute Type + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less - + - Tests whether the object provides the expected attribute. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Writes the description of the constraint to the specified writer + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - AttributeConstraint tests that a specified attribute is present - on a Type or other provider and that the value of the attribute - satisfies some other constraint. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Abstract base class used for prefixes + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - The base constraint + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Construct given a base constraint + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less - + - Constructs an AttributeConstraint for a specified attriute - Type and base constraint. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Writes a description of the attribute to the specified writer. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Writes the actual value supplied to the specified writer. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a string representation of the constraint. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - BasicConstraint is the abstract base for constraints that - perform a simple comparison to a constant value. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Initializes a new instance of the class. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - The expected. - The description. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test whether the constraint is satisfied by a given value + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - The value to be tested - True for success, false for failure + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Write the constraint description to a MessageWriter + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. - The writer on which the description is displayed + The first value, expected to be greater + The second value, expected to be less - + - NullConstraint tests that the actual value is null + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Initializes a new instance of the class. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - TrueConstraint tests that the actual value is true + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Initializes a new instance of the class. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - FalseConstraint tests that the actual value is false + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Initializes a new instance of the class. + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - NaNConstraint tests that the actual value is a double or float NaN + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test that the actual value is an NaN + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Write the constraint description to a specified writer + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater - + - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - The first constraint being combined + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - The second constraint being combined + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Construct a BinaryConstraint from two other constraints + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The first constraint - The second constraint + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - AndConstraint succeeds only if both members succeed. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Create an AndConstraint from two other constraints + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The first constraint - The second constraint + The first value, expected to be less + The second value, expected to be greater - + - Apply both member constraints to an actual value, succeeding - succeeding only if both of them succeed. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The actual value - True if the constraints both succeeded + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Write a description for this contraint to a MessageWriter + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The MessageWriter to receive the description + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The writer on which the actual value is displayed + The first value, expected to be less + The second value, expected to be greater - + - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The first constraint - The second constraint + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Apply the member constraints to an actual value, succeeding - succeeding as soon as one of them succeeds. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The actual value - True if either constraint succeeded + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Write a description for this contraint to a MessageWriter + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The MessageWriter to receive the description + The first value, expected to be less + The second value, expected to be greater - + - CollectionConstraint is the abstract base class for - constraints that operate on collections. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct an empty CollectionConstraint + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a CollectionConstraint + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater - + - Determines whether the specified enumerable is empty. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The enumerable. - - true if the specified enumerable is empty; otherwise, false. - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test whether the constraint is satisfied by a given value + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - The value to be tested - True for success, false for failure + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Protected method to be implemented by derived classes + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater - + - CollectionItemsEqualConstraint is the abstract base class for all - collection constraints that apply some notion of item equality - as a part of their operation. + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct an empty CollectionConstraint + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a CollectionConstraint + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater - + - Flag the constraint to use the supplied IComparer object. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The IComparer object to use. - Self. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Flag the constraint to use the supplied IComparer object. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The IComparer object to use. - Self. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Flag the constraint to use the supplied Comparison object. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The IComparer object to use. - Self. + The first value, expected to be greater + The second value, expected to be less - + - Flag the constraint to use the supplied IEqualityComparer object. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The IComparer object to use. - Self. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Flag the constraint to use the supplied IEqualityComparer object. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The IComparer object to use. - Self. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Compares two collection members for equality + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Return a new CollectionTally for use in making tests + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The collection to be included in the tally + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Flag the constraint to ignore case and return self. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - EmptyCollectionConstraint tests whether a collection is empty. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Check that the collection is empty + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Write the constraint description to a MessageWriter + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - UniqueItemsConstraint tests whether all the items in a - collection are unique. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Check that all items are unique. - - - - - - - Write a description of this constraint to a MessageWriter + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Construct a CollectionContainsConstraint + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less - + - Test whether the expected item is contained in the collection + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Write a descripton of the constraint to a MessageWriter + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - CollectionEquivalentCOnstraint is used to determine whether two - collections are equivalent. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less - + - Construct a CollectionEquivalentConstraint + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test whether two collections are equivalent + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - - + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Write a description of this constraint to a MessageWriter + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - + The first value, expected to be greater + The second value, expected to be less - + - CollectionSubsetConstraint is used to determine whether - one collection is a subset of another + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a CollectionSubsetConstraint + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - The collection that the actual value is expected to be a subset of + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure - + - Test whether the actual collection is a subset of - the expected collection provided. + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. - - + The first value, expected to be greater + The second value, expected to be less - + - Write a description of this constraint to a MessageWriter + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - CollectionOrderedConstraint is used to test whether a collection is ordered. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a CollectionOrderedConstraint + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Modifies the constraint to use an IComparer and returns self. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Modifies the constraint to use an IComparer<T> and returns self. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Modifies the constraint to use a Comparison<T> and returns self. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Modifies the constraint to test ordering by the value of - a specified property and returns self. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Test whether the collection is ordered + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Write a description of the constraint to a MessageWriter + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater - + - Returns the string representation of the constraint. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - If used performs a reverse comparison + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - CollectionTally counts (tallies) the number of - occurences of each object in one or more enumerations. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Construct a CollectionTally object from a comparer and a collection + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Try to remove an object from the tally - - The object to remove - True if successful, false if the object was not found - - - - Try to remove a set of objects from the tally + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - The objects to remove - True if successful, false if any object was not found + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - The number of objects remaining in the tally + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - ComparisonAdapter class centralizes all comparisons of - values in NUnit, adapting to the use of any provided - IComparer, IComparer<T> or Comparison<T> + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Returns a ComparisonAdapter that wraps an IComparer + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Returns a ComparisonAdapter that wraps an IComparer<T> + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Returns a ComparisonAdapter that wraps a Comparison<T> + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Compares two objects + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - Construct a ComparisonAdapter for an IComparer + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message - + - Compares two objects + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. - - - + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure - + - Construct a default ComparisonAdapter + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + The first value, expected to be less + The second value, expected to be greater - + - ComparisonAdapter<T> extends ComparisonAdapter and - allows use of an IComparer<T> or Comparison<T> - to actually perform the comparison. + Asserts that an object is contained in a list. + The expected object + The list to be examined + The message to display in case of failure + Array of objects to be used in formatting the message - + - Construct a ComparisonAdapter for an IComparer<T> + Asserts that an object is contained in a list. + The expected object + The list to be examined + The message to display in case of failure - + - Compare a Type T to an object + Asserts that an object is contained in a list. + The expected object + The list to be examined - + - Construct a ComparisonAdapter for a Comparison<T> + Helper for Assert.AreEqual(double expected, double actual, ...) + allowing code generation to work consistently. + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message - + - Compare a Type T to an object + Gets the number of assertions executed so far and + resets the counter to zero. - + - Abstract base class for constraints that compare values to - determine if one is greater than, equal to or less than - the other. This class supplies the Using modifiers. + AssertionHelper is an optional base class for user tests, + allowing the use of shorter names for constraints and + asserts and avoiding conflict with the definition of + , from which it inherits much of its + behavior, in certain mock object frameworks. - + - ComparisonAdapter to be used in making the comparison + Helper class with properties and methods that supply + a number of constraints used in Asserts. - + - Initializes a new instance of the class. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding only if a specified number of them succeed. - + - Initializes a new instance of the class. + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. - + - Modifies the constraint to use an IComparer and returns self + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - + - Modifies the constraint to use an IComparer<T> and returns self + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - + - Modifies the constraint to use a Comparison<T> and returns self + Returns a constraint that tests two items for equality - + - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint + Returns a constraint that tests that two references are the same object - + - ConstraintBuilder maintains the stacks that are used in - processing a ConstraintExpression. An OperatorStack - is used to hold operators that are waiting for their - operands to be reognized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. + Returns a constraint that tests whether the + actual value is greater than the suppled argument - + - Initializes a new instance of the class. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - + - Appends the specified operator to the expression by first - reducing the operator stack and then pushing the new - operator on the stack. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - The operator to push. - + - Appends the specified constraint to the expresson by pushing - it on the constraint stack. + Returns a constraint that tests whether the + actual value is less than the suppled argument - The constraint to push. - + - Sets the top operator right context. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The right context. - + - Reduces the operator stack until the topmost item - precedence is greater than or equal to the target precedence. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The target precedence. - + - Resolves this instance, returning a Constraint. If the builder - is not currently in a resolvable state, an exception is thrown. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The resolved constraint - + - Gets a value indicating whether this instance is resolvable. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - - true if this instance is resolvable; otherwise, false. - - + - OperatorStack is a type-safe stack for holding ConstraintOperators + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - + - Initializes a new instance of the class. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The builder. - + - Pushes the specified operator onto the stack. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The op. - + - Pops the topmost operator from the stack. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - - + - Gets a value indicating whether this is empty. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - true if empty; otherwise, false. - + - Gets the topmost operator without modifying the stack. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The top. - + - ConstraintStack is a type-safe stack for holding Constraints + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - + - Initializes a new instance of the class. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The builder. - + - Pushes the specified constraint. As a side effect, - the constraint's builder field is set to the - ConstraintBuilder owning this stack. + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. - The constraint. - + - Pops this topmost constrait from the stack. - As a side effect, the constraint's builder - field is set to null. + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. - - + - Gets a value indicating whether this is empty. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - true if empty; otherwise, false. - + - Gets the topmost constraint without modifying the stack. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - The topmost constraint - + - ConstraintExpression represents a compound constraint in the - process of being constructed from a series of syntactic elements. - - Individual elements are appended to the expression as they are - reognized. Once an actual Constraint is appended, the expression - returns a resolvable Constraint. + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. - + - ConstraintExpressionBase is the abstract base class for the - ConstraintExpression class, which represents a - compound constraint in the process of being constructed - from a series of syntactic elements. - - NOTE: ConstraintExpressionBase is separate because the - ConstraintExpression class was generated in earlier - versions of NUnit. The two classes may be combined - in a future version. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - + - The ConstraintBuilder holding the elements recognized so far + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - + - Initializes a new instance of the class. + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. - + - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The builder. - + - Returns a string representation of the expression as it - currently stands. This should only be used for testing, - since it has the side-effect of resolving the expression. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - - + - Appends an operator to the expression and returns the - resulting expression itself. + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. - + - Appends a self-resolving operator to the expression and - returns a new ResolvableConstraintExpression. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - + - Appends a constraint to the expression and returns that - constraint, which is associated with the current state - of the expression being built. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - + - Initializes a new instance of the class. + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. - + - Initializes a new instance of the - class passing in a ConstraintBuilder, which may be pre-populated. + Returns a constraint that succeeds if the actual + value matches the regular expression supplied as an argument. - The builder. - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. + Returns a constraint that succeeds if the actual + value matches the regular expression supplied as an argument. - + - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - + - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - + - Returns the constraint provided as an argument - used to allow custom - custom constraints to easily participate in the syntax. + Returns a constraint that tests whether the actual value falls + within a specified range. - + - Returns a constraint that tests two items for equality + Returns a ConstraintExpression that negates any + following constraint. - + - Returns a constraint that tests that two references are the same object + Returns a ConstraintExpression that negates any + following constraint. - + - Returns a constraint that tests whether the - actual value is greater than the suppled argument + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. - + - Returns a constraint that tests whether the - actual value is less than the suppled argument + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Returns a constraint that tests for null - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Returns a constraint that tests for True - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Returns a constraint that tests for False - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Returns a constraint that tests for a positive value - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Returns a constraint that tests for a negative value - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that tests for NaN - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that tests for empty - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that tests whether a collection + contains all unique items. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Returns a constraint that tests whether an object graph is serializable in binary format. - + - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. + Returns a constraint that tests whether an object graph is serializable in xml format. - + - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. + Returns a constraint that tests whether a collection is ordered - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to Assert.That. + The actual value to test + A Constraint to be applied - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to Assert.That. + The actual value to test + A Constraint to be applied + The message to be displayed in case of failure - + - Returns a new ContainsConstraint. This constraint - will, in turn, make use of the appropriate second-level - constraint, depending on the type of the actual argument. - This overload is only used if the item sought is a string, - since any other type implies that we are looking for a - collection member. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to Assert.That. + The actual value to test + A Constraint to be applied + The message to be displayed in case of failure + Arguments to use in formatting the message - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + The evaluated condition + The message to display if the condition is false - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to . + The evaluated condition - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied + The message that will be displayed on failure - + - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + The actual value to test + A Constraint to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + A TestDelegate to be executed + A ThrowsConstraint used in the test - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Returns a ListMapper based on a collection. + The original collection + - + - Returns a constraint that tests whether the actual value falls - within a specified range. + Provides static methods to express the assumptions + that must be met for a test to give a meaningful + result. If an assumption is not met, the test + should produce an inconclusive result. - + - Returns a ConstraintExpression that negates any - following constraint. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + - + - Returns a ConstraintExpression that negates any - following constraint. + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. - + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. + Asserts that a condition is true. If the condition is false the method throws + an . + The evaluated condition + The message to display if the condition is false - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. + Asserts that a condition is true. If the condition is false the + method throws an . + The evaluated condition - + - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested - + - With is currently a NOP - reserved for future use. + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure - + - Returns a constraint that tests for null + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests for True + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test - + - Returns a constraint that tests for False + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure - + - Returns a constraint that tests for a positive value + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests for a negative value + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + A TestDelegate to be executed + A ThrowsConstraint used in the test - + - Returns a constraint that tests for NaN + Waits for pending asynchronous operations to complete, if appropriate, + and returns a proper result of the invocation by unwrapping task results + The raw result of the method invocation + The unwrapped result, if necessary - + - Returns a constraint that tests for empty + A set of Assert methods operationg on one or more collections - + - Returns a constraint that tests whether a collection - contains all unique items. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + - + - Returns a constraint that tests whether an object graph is serializable in binary format. + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + - + - Returns a constraint that tests whether an object graph is serializable in xml format. + Asserts that all items contained in collection are of the type specified by expectedType. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of - + - Returns a constraint that tests whether a collection is ordered + Asserts that all items contained in collection are of the type specified by expectedType. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Asserts that all items contained in collection are of the type specified by expectedType. + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. + Asserts that all items contained in collection are not equal to null. + IEnumerable containing objects to be considered - + - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. + Asserts that all items contained in collection are not equal to null. + IEnumerable containing objects to be considered + The message that will be displayed on failure - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Asserts that all items contained in collection are not equal to null. + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Ensures that every object contained in collection exists within the collection + once and only once. + IEnumerable of objects to be considered - + - Returns a constraint that tests two items for equality + Ensures that every object contained in collection exists within the collection + once and only once. + IEnumerable of objects to be considered + The message that will be displayed on failure - + - Returns a constraint that tests that two references are the same object + Ensures that every object contained in collection exists within the collection + once and only once. + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the - actual value is greater than the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure - + - Returns a constraint that tests whether the - actual value is less than the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Asserts that expected and actual are not exactly equal. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Asserts that expected and actual are not exactly equal. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Asserts that expected and actual are not exactly equal. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. + Asserts that expected and actual are not equivalent. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered - + - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. + Asserts that expected and actual are not equivalent. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Asserts that expected and actual are not equivalent. + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Asserts that collection contains actual as an item. + IEnumerable of objects to be considered + Object to be found within collection - + - Returns a new ContainsConstraint. This constraint - will, in turn, make use of the appropriate second-level - constraint, depending on the type of the actual argument. - This overload is only used if the item sought is a string, - since any other type implies that we are looking for a - collection member. + Asserts that collection contains actual as an item. + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Asserts that collection contains actual as an item. + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Asserts that collection does not contain actual as an item. + IEnumerable of objects to be considered + Object that cannot exist within collection - + - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. + Asserts that collection does not contain actual as an item. + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Asserts that collection does not contain actual as an item. + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Asserts that superset is not a subject of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered - + - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. + Asserts that superset is not a subject of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Asserts that superset is not a subject of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Asserts that superset is a subset of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered - + - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. + Asserts that superset is a subset of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Asserts that superset is a subset of subset. + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Assert that an array, list or other collection is empty + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. + Assert that an array, list or other collection is empty + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + Assert that an array,list or other collection is empty + An array, list or other collection implementing IEnumerable - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Assert that an array, list or other collection is empty + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Assert that an array, list or other collection is empty + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Returns a constraint that tests whether the actual value falls - within a specified range. + Assert that an array,list or other collection is empty + An array, list or other collection implementing IEnumerable - + - Returns a ConstraintExpression that negates any - following constraint. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message - + - Returns a ConstraintExpression that negates any - following constraint. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable + The message to be displayed on failure - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + Arguments to be used in formatting the message - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. + Assert that an array, list or other collection is ordered + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. + Helper class with properties and methods that supply + a number of constraints used in Asserts. - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - + - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - + - Returns a constraint that tests for null + Summary description for DirectoryAssert - + - Returns a constraint that tests for True + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + - + - Returns a constraint that tests for False + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + - + - Returns a constraint that tests for a positive value + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. - + - Returns a constraint that tests for a negative value + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message - + - Returns a constraint that tests for NaN + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal - + - Returns a constraint that tests for empty + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory containing the value that is expected + A directory containing the actual value - + - Returns a constraint that tests whether a collection - contains all unique items. + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message - + - Returns a constraint that tests whether an object graph is serializable in binary format. + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal - + - Returns a constraint that tests whether an object graph is serializable in xml format. + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A directory path string containing the value that is expected + A directory path string containing the actual value - + - Returns a constraint that tests whether a collection is ordered + Asserts that two directories are not equal. If they are equal + an is thrown. + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message - + - The ConstraintOperator class is used internally by a - ConstraintBuilder to represent an operator that - modifies or combines constraints. - - Constraint operators use left and right precedence - values to determine whether the top operator on the - stack should be reduced before pushing a new operator. + Asserts that two directories are not equal. If they are equal + an is thrown. + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal - + - The precedence value used when the operator - is about to be pushed to the stack. + Asserts that two directories are not equal. If they are equal + an is thrown. + A directory containing the value that is expected + A directory containing the actual value - + - The precedence value used when the operator - is on the top of the stack. + Asserts that two directories are not equal. If they are equal + an is thrown. + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + Arguments to be used in formatting the message - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Asserts that two directories are not equal. If they are equal + an is thrown. - + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal - + - The syntax element preceding this operator + Asserts that two directories are not equal. If they are equal + an is thrown. + A directory path string containing the value that is expected + A directory path string containing the actual value - + - The syntax element folowing this operator + Asserts that the directory is empty. If it is not empty + an is thrown. + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message - + - The precedence value used when the operator - is about to be pushed to the stack. + Asserts that the directory is empty. If it is not empty + an is thrown. + A directory to search + The message to display if directories are not equal - + - The precedence value used when the operator - is on the top of the stack. + Asserts that the directory is empty. If it is not empty + an is thrown. + A directory to search - + - PrefixOperator takes a single constraint and modifies - it's action in some way. + Asserts that the directory is empty. If it is not empty + an is thrown. + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Asserts that the directory is empty. If it is not empty + an is thrown. - + A directory to search + The message to display if directories are not equal - + - Returns the constraint created by applying this - prefix to another constraint. + Asserts that the directory is empty. If it is not empty + an is thrown. - - + A directory to search - + - Negates the test of the constraint it wraps. + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message - + - Constructs a new NotOperator + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search + The message to display if directories are not equal - + - Returns a NotConstraint applied to its argument. + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search - + - Abstract base for operators that indicate how to - apply a constraint to items in a collection. + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message - + - Constructs a CollectionOperator + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search + The message to display if directories are not equal - + - Represents a constraint that succeeds if all the - members of a collection match a base constraint. + Asserts that the directory is not empty. If it is empty + an is thrown. + A directory to search - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - they all succeed. + Asserts that path contains actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Represents a constraint that succeeds if any of the - members of a collection match a base constraint. + Asserts that path contains actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - any of them succeed. - - - - - Represents a constraint that succeeds if none of the - members of a collection match a base constraint. + Asserts that path contains actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. + Asserts that path contains actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. + Asserts that path contains actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Construct an ExactCountOperator for a specified count + Asserts that path contains actual as a subdirectory or + an is thrown. - The expected count + A directory to search + sub-directory asserted to exist under directory - + - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifes the - order of evaluation because of its precedence. + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Constructor for the WithOperator + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory - + - Returns a constraint that wraps its argument + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message - + - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path - + - Operator used to test for the presence of a named Property - on an object and optionally apply further tests to the - value of that property. + Asserts that path does not contain actual as a subdirectory or + an is thrown. + A directory to search + sub-directory asserted to exist under directory - + - Constructs a PropOperator for a particular named property + Summary description for FileAssert. - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. - + + - + - Gets the name of the property to which the operator applies + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + - + - Operator that tests for the presence of a particular attribute - on a type and optionally applies further tests to the attribute. + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. - + - Construct an AttributeOperator for a particular Type + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - The Type of attribute tested + The expected Stream + The actual Stream + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + The expected Stream + The actual Stream + The message to display if objects are not equal - + - Operator that tests that an exception is thrown and - optionally applies further tests to the exception. + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + The expected Stream + The actual Stream - + - Construct a ThrowsOperator + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal - + - Abstract base class for all binary operators + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + A file containing the value that is expected + A file containing the actual value - + - Reduce produces a constraint from the operator and - any arguments. It takes the arguments from the constraint - stack and pushes the resulting constraint on it. + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. - + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal - + - Gets the left precedence of the operator + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + The path to a file containing the value that is expected + The path to a file containing the actual value - + - Gets the right precedence of the operator + Asserts that two Streams are not equal. If they are equal + an is thrown. + The expected Stream + The actual Stream + The message to be displayed when the two Stream are the same. + Arguments to be used in formatting the message - + - Operator that requires both it's arguments to succeed + Asserts that two Streams are not equal. If they are equal + an is thrown. + The expected Stream + The actual Stream + The message to be displayed when the Streams are the same. - + - Construct an AndOperator + Asserts that two Streams are not equal. If they are equal + an is thrown. + The expected Stream + The actual Stream - + - Apply the operator to produce an AndConstraint + Asserts that two files are not equal. If they are equal + an is thrown. + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - Operator that requires at least one of it's arguments to succeed + Asserts that two files are not equal. If they are equal + an is thrown. + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal - + - Construct an OrOperator + Asserts that two files are not equal. If they are equal + an is thrown. + A file containing the value that is expected + A file containing the actual value - + - Apply the operator to produce an OrConstraint + Asserts that two files are not equal. If they are equal + an is thrown. + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message - + - ContainsConstraint tests a whether a string contains a substring - or a collection contains an object. It postpones the decision of - which test to use until the type of the actual argument is known. - This allows testing whether a string is contained in a collection - or as a substring of another string using the same syntax. + Asserts that two files are not equal. If they are equal + an is thrown. + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal - + - Initializes a new instance of the class. + Asserts that two files are not equal. If they are equal + an is thrown. - The expected. + The path to a file containing the value that is expected + The path to a file containing the actual value - + - Test whether the constraint is satisfied by a given value + GlobalSettings is a place for setting default values used + by the framework in performing asserts. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Default tolerance for floating point equality - The writer on which the description is displayed - + - Flag the constraint to use the supplied IComparer object. + Class used to guard against unexpected argument values + by throwing an appropriate exception. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + Throws an exception if an argument is null - The IComparer object to use. - Self. + The value to be tested + The name of the argument - + - Flag the constraint to use the supplied Comparison object. + Throws an exception if a string argument is null or empty - The IComparer object to use. - Self. + The value to be tested + The name of the argument - + - Flag the constraint to use the supplied IEqualityComparer object. + Helper class with properties and methods that supply + a number of constraints used in Asserts. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IEqualityComparer object. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding only if a specified number of them succeed. - The IComparer object to use. - Self. - + - Flag the constraint to ignore case and return self. + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. - + - Applies a delay to the match so that a match can be evaluated in the future. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - + - Creates a new DelayedConstraint + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - The inner constraint two decorate - The time interval after which the match is performed - If the value of is less than 0 - + - Creates a new DelayedConstraint + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - The inner constraint two decorate - The time interval after which the match is performed - The time interval used for polling - If the value of is less than 0 - + - Test whether the constraint is satisfied by a given value + Returns a ConstraintExpression that negates any + following constraint. - The value to be tested - True for if the base constraint fails, false if it succeeds - + - Test whether the constraint is satisfied by a delegate + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - The delegate whose value is to be tested - True for if the base constraint fails, false if it succeeds - + - Test whether the constraint is satisfied by a given reference. - Overridden to wait for the specified delay period before - calling the base constraint with the dereferenced value. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. - A reference to the value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a MessageWriter. + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. - + - EmptyDirectoryConstraint is used to test that a directory is empty + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. - + - Test whether the constraint is satisfied by a given value + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Interface implemented by a user fixture in order to + validate any expected exceptions. It is only called + for test methods marked with the ExpectedException + attribute. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Method to handle an expected exception - The writer on which the actual value is displayed + The exception to be handled - + - EmptyConstraint tests a whether a string or collection is empty, - postponing the decision about which test is applied until the - type of the actual argument is known. + Helper class with properties and methods that supply + a number of constraints used in Asserts. - + - Test whether the constraint is satisfied by a given value + Returns a constraint that tests two items for equality - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns a constraint that tests that two references are the same object - The writer on which the description is displayed - + - EqualConstraint is able to compare an actual value with the - expected value provided in its constructor. Two objects are - considered equal if both are null, or if both have the same - value. NUnit has special semantics for some object types. + Returns a constraint that tests whether the + actual value is greater than the suppled argument - + - If true, strings in error messages will be clipped + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - + - NUnitEqualityComparer used to test equality. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - + - Initializes a new instance of the class. + Returns a constraint that tests whether the + actual value is less than the suppled argument - The expected value. - + - Flag the constraint to use a tolerance when determining equality. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - Tolerance value to be used - Self. - + - Flag the constraint to use the supplied IComparer object. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IComparer object. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied Comparison object. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IEqualityComparer object. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The IComparer object to use. - Self. - + - Flag the constraint to use the supplied IEqualityComparer object. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The IComparer object to use. - Self. - + - Test whether the constraint is satisfied by a given value + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The value to be tested - True for success, false for failure - + - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The MessageWriter to write to - + - Write description of this constraint + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The MessageWriter to write to - + - Display the failure information for two collections that did not match. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The MessageWriter on which to display - The expected collection. - The actual collection - The depth of this failure in a set of nested collections - + - Displays a single line showing the types and sizes of the expected - and actual enumerations, collections or arrays. If both are identical, - the value is only shown once. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The MessageWriter on which to display - The expected collection or array - The actual collection or array - The indentation level for the message line - + - Displays a single line showing the point in the expected and actual - arrays at which the comparison failed. If the arrays have different - structures or dimensions, both values are shown. + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. - The MessageWriter on which to display - The expected array - The actual array - Index of the failure point in the underlying collections - The indentation level for the message line - + - Display the failure information for two IEnumerables that did not match. + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - + - Flag the constraint to ignore case and return self. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - + - Flag the constraint to suppress string clipping - and return self. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - + - Flag the constraint to compare arrays as collections - and return self. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - + - Switches the .Within() modifier to interpret its tolerance as - a distance in representable values (see remarks). + Returns a constraint that succeeds if the actual + value matches the regular expression supplied as an argument. - Self. - - Ulp stands for "unit in the last place" and describes the minimum - amount a given value can change. For any integers, an ulp is 1 whole - digit. For floating point values, the accuracy of which is better - for smaller numbers and worse for larger numbers, an ulp depends - on the size of the number. Using ulps for comparison of floating - point results instead of fixed tolerances is safer because it will - automatically compensate for the added inaccuracy of larger numbers. - - + - Switches the .Within() modifier to interpret its tolerance as - a percentage that the actual values is allowed to deviate from - the expected value. + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in days. + Returns a constraint that tests whether the path provided + is under an expected path after canonicalization. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in hours. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in minutes. + Returns a constraint that tests whether the actual value falls + within a specified range. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in seconds. + Returns a ConstraintExpression that negates any + following constraint. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in milliseconds. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - Self - + - Causes the tolerance to be interpreted as a TimeSpan in clock ticks. + Returns a constraint that tests for null - Self - + - EqualityAdapter class handles all equality comparisons - that use an IEqualityComparer, IEqualityComparer<T> - or a ComparisonAdapter. + Returns a constraint that tests for True - + - Compares two objects, returning true if they are equal + Returns a constraint that tests for False - + - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. + Returns a constraint that tests for a positive value - + - Returns an EqualityAdapter that wraps an IComparer. + Returns a constraint that tests for a negative value - + - Returns an EqualityAdapter that wraps an IEqualityComparer. + Returns a constraint that tests for NaN - + - Returns an EqualityAdapter that wraps an IEqualityComparer<T>. + Returns a constraint that tests for empty - + - Returns an EqualityAdapter that wraps an IComparer<T>. + Returns a constraint that tests whether a collection + contains all unique items. - + - Returns an EqualityAdapter that wraps a Comparison<T>. + Returns a constraint that tests whether an object graph is serializable in binary format. - + - EqualityAdapter that wraps an IComparer. + Returns a constraint that tests whether an object graph is serializable in xml format. - + - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. + Returns a constraint that tests whether a collection is ordered - + - EqualityAdapter that wraps an IComparer. + The ITestCaseData interface is implemented by a class + that is able to return complete testcases for use by + a parameterized test method. + + NOTE: This interface is used in both the framework + and the core, even though that results in two different + types. However, sharing the source code guarantees that + the various implementations will be compatible and that + the core is able to reflect successfully over the + framework implementations of ITestCaseData. - - Helper routines for working with floating point numbers - - - The floating point comparison code is based on this excellent article: - http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm - - - "ULP" means Unit in the Last Place and in the context of this library refers to - the distance between two adjacent floating point numbers. IEEE floating point - numbers can only represent a finite subset of natural numbers, with greater - accuracy for smaller numbers and lower accuracy for very large numbers. - - - If a comparison is allowed "2 ulps" of deviation, that means the values are - allowed to deviate by up to 2 adjacent floating point values, which might be - as low as 0.0000001 for small numbers or as high as 10.0 for large numbers. - - + + + Gets the argument list to be provided to the test + - - Compares two floating point values for equality - First floating point value to be compared - Second floating point value t be compared - - Maximum number of representable floating point values that are allowed to - be between the left and the right floating point values - - True if both numbers are equal or close to being equal - - - Floating point values can only represent a finite subset of natural numbers. - For example, the values 2.00000000 and 2.00000024 can be stored in a float, - but nothing inbetween them. - - - This comparison will count how many possible floating point values are between - the left and the right number. If the number of possible values between both - numbers is less than or equal to maxUlps, then the numbers are considered as - being equal. - - - Implementation partially follows the code outlined here: - http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ - - + + + Gets the expected result + - - Compares two double precision floating point values for equality - First double precision floating point value to be compared - Second double precision floating point value t be compared - - Maximum number of representable double precision floating point values that are - allowed to be between the left and the right double precision floating point values - - True if both numbers are equal or close to being equal - - - Double precision floating point values can only represent a limited series of - natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004 - can be stored in a double, but nothing inbetween them. - - - This comparison will count how many possible double precision floating point - values are between the left and the right number. If the number of possible - values between both numbers is less than or equal to maxUlps, then the numbers - are considered as being equal. - - - Implementation partially follows the code outlined here: - http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ - - - - + - Reinterprets the memory contents of a floating point value as an integer value + Indicates whether a result has been specified. + This is necessary because the result may be + null, so it's value cannot be checked. - - Floating point value whose memory contents to reinterpret - - - The memory contents of the floating point value interpreted as an integer - - + - Reinterprets the memory contents of a double precision floating point - value as an integer value + Gets the expected exception Type - - Double precision floating point value whose memory contents to reinterpret - - - The memory contents of the double precision floating point value - interpreted as an integer - - + - Reinterprets the memory contents of an integer as a floating point value + Gets the FullName of the expected exception - Integer value whose memory contents to reinterpret - - The memory contents of the integer value interpreted as a floating point value - - + - Reinterprets the memory contents of an integer value as a double precision - floating point value + Gets the name to be used for the test - Integer whose memory contents to reinterpret - - The memory contents of the integer interpreted as a double precision - floating point value - - - - Union of a floating point variable and an integer - - - The union's value as a floating point variable - - - The union's value as an integer - - - The union's value as an unsigned integer - - - Union of a double precision floating point variable and a long - - - The union's value as a double precision floating point variable - - The union's value as a long - - - The union's value as an unsigned long - - + - Tests whether a value is greater than the value supplied to its constructor + Gets the description of the test - + - The value against which a comparison is to be made + Gets a value indicating whether this is ignored. + true if ignored; otherwise, false. - + - Initializes a new instance of the class. + Gets a value indicating whether this is explicit. - The expected value. + true if explicit; otherwise, false. - + - Write the constraint description to a MessageWriter + Gets the ignore reason. - The writer on which the description is displayed + The ignore reason. - + - Test whether the constraint is satisfied by a given value + The Iz class is a synonym for Is intended for use in VB, + which regards Is as a keyword. - The value to be tested - True for success, false for failure - + - Tests whether a value is greater than or equal to the value supplied to its constructor + The List class is a helper class with properties and methods + that supply a number of constraints used with lists and collections. - + - The value against which a comparison is to be made + List.Map returns a ListMapper, which can be used to map + the original collection to another collection. + + - + - Initializes a new instance of the class. + ListMapper is used to transform a collection used as an actual argument + producing another collection to be used in the assertion. - The expected value. - + - Write the constraint description to a MessageWriter + Construct a ListMapper based on a collection - The writer on which the description is displayed + The collection to be transformed - + - Test whether the constraint is satisfied by a given value + Produces a collection containing all the values of a property - The value to be tested - True for success, false for failure + The collection of property values + - + - Tests whether a value is less than the value supplied to its constructor + Randomizer returns a set of random values in a repeatable + way, to allow re-running of tests if necessary. - + - The value against which a comparison is to be made + Get a randomizer for a particular member, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. - + - Initializes a new instance of the class. + Get a randomizer for a particular parameter, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. - The expected value. - + - Write the constraint description to a MessageWriter + Construct a randomizer using a random seed - The writer on which the description is displayed - + - Test whether the constraint is satisfied by a given value + Construct a randomizer using a specified seed - The value to be tested - True for success, false for failure - + - Tests whether a value is less than or equal to the value supplied to its constructor + Return an array of random doubles between 0.0 and 1.0. + + - + - The value against which a comparison is to be made + Return an array of random doubles with values in a specified range. - + - Initializes a new instance of the class. + Return an array of random ints with values in a specified range. - The expected value. - + - Write the constraint description to a MessageWriter + Get a random seed for use in creating a randomizer. - The writer on which the description is displayed - + - Test whether the constraint is satisfied by a given value + The SpecialValue enum is used to represent TestCase arguments + that cannot be used as arguments to an Attribute. - The value to be tested - True for success, false for failure - + - MessageWriter is the abstract base for classes that write - constraint descriptions and messages in some form. The - class has separate methods for writing various components - of a message, allowing implementations to tailor the - presentation as needed. + Null represents a null value, which cannot be used as an + argument to an attribute under .NET 1.x - + - Construct a MessageWriter given a culture + Basic Asserts on strings. - + - Method to write single line message with optional args, usually - written to precede the general failure message. + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. - The message to be written - Any arguments used in formatting the message + + - + - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. - The indentation level of the message - The message to be written - Any arguments used in formatting the message + + - + - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. + Asserts that a string is found within another string. - The constraint that failed + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. + Asserts that a string is found within another string. - The expected value - The actual value causing the failure + The expected string + The string to be examined + The message to display in case of failure - + - Display Expected and Actual lines for given values, including - a tolerance value on the Expected line. + Asserts that a string is found within another string. - The expected value - The actual value causing the failure - The tolerance within which the test was made + The expected string + The string to be examined - + - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. + Asserts that a string is not found within another string. - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in locating the point where the strings differ - If true, the strings should be clipped to fit the line + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Writes the text for a connector. + Asserts that a string is found within another string. - The connector. + The expected string + The string to be examined + The message to display in case of failure - + - Writes the text for a predicate. + Asserts that a string is found within another string. - The predicate. + The expected string + The string to be examined - + - Writes the text for an expected value. + Asserts that a string starts with another string. - The expected value. + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Writes the text for a modifier + Asserts that a string starts with another string. - The modifier. + The expected string + The string to be examined + The message to display in case of failure - + - Writes the text for an actual value. + Asserts that a string starts with another string. - The actual value. + The expected string + The string to be examined - + - Writes the text for a generalized value. + Asserts that a string does not start with another string. - The value. + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Writes the text for a collection value, - starting at a particular point, to a max length + Asserts that a string does not start with another string. - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write + The expected string + The string to be examined + The message to display in case of failure - + - Abstract method to get the max line length + Asserts that a string does not start with another string. + The expected string + The string to be examined - + - Static methods used in creating messages + Asserts that a string ends with another string. + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Static string used when strings are clipped + Asserts that a string ends with another string. + The expected string + The string to be examined + The message to display in case of failure - + - Returns the representation of a type as used in NUnitLite. - This is the same as Type.ToString() except for arrays, - which are displayed with their declared sizes. + Asserts that a string ends with another string. - - + The expected string + The string to be examined - + - Converts any control characters in a string - to their escaped representation. + Asserts that a string does not end with another string. - The string to be converted - The converted string + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message - + - Return the a string representation for a set of indices into an array + Asserts that a string does not end with another string. - Array of indices for which a string is needed + The expected string + The string to be examined + The message to display in case of failure - + - Get an array of indices representing the point in a enumerable, - collection or array corresponding to a single int index into the - collection. + Asserts that a string does not end with another string. - The collection to which the indices apply - Index in the collection - Array of indices + The expected string + The string to be examined - + - Clip a string to a given length, starting at a particular offset, returning the clipped - string with ellipses representing the removed parts + Asserts that two strings are equal, without regard to case. - The string to be clipped - The maximum permitted length of the result string - The point at which to start clipping - The clipped string + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message - + - Clip the expected and actual strings in a coordinated fashion, - so that they may be displayed together. + Asserts that two strings are equal, without regard to case. - - - - + The expected string + The actual string + The message to display in case of failure - + - Shows the position two strings start to differ. Comparison - starts at the start index. + Asserts that two strings are equal, without regard to case. The expected string The actual string - The index in the strings at which comparison should start - Boolean indicating whether case should be ignored - -1 if no mismatch found, or the index where mismatch found - + - The Numerics class contains common operations on numeric values. + Asserts that two strings are not equal, without regard to case. + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message - + - Checks the type of the object, returning true if - the object is a numeric type. + Asserts that two strings are Notequal, without regard to case. - The object to check - true if the object is a numeric type + The expected string + The actual string + The message to display in case of failure - + - Checks the type of the object, returning true if - the object is a floating point numeric type. + Asserts that two strings are not equal, without regard to case. - The object to check - true if the object is a floating point numeric type + The expected string + The actual string - + - Checks the type of the object, returning true if - the object is a fixed point numeric type. + Asserts that a string matches an expected regular expression pattern. - The object to check - true if the object is a fixed point numeric type + The regex pattern to be matched + The actual string + The message to display in case of failure + Arguments used in formatting the message - + - Test two numeric values for equality, performing the usual numeric - conversions and using a provided or default tolerance. If the tolerance - provided is Empty, this method may set it to a default tolerance. + Asserts that a string matches an expected regular expression pattern. - The expected value - The actual value - A reference to the tolerance in effect - True if the values are equal + The regex pattern to be matched + The actual string + The message to display in case of failure - + - Compare two numeric values, performing the usual numeric conversions. + Asserts that a string matches an expected regular expression pattern. - The expected value - The actual value - The relationship of the values to each other + The regex pattern to be matched + The actual string - + - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. + Asserts that a string does not match an expected regular expression pattern. + The regex pattern to be used + The actual string + The message to display in case of failure + Arguments used in formatting the message - + - Compares two objects + Asserts that a string does not match an expected regular expression pattern. - - - + The regex pattern to be used + The actual string + The message to display in case of failure - + - Returns the default NUnitComparer. + Asserts that a string does not match an expected regular expression pattern. + The regex pattern to be used + The actual string - + - Generic version of NUnitComparer + The TestCaseData class represents a set of arguments + and other parameter info to be used for a parameterized + test case. It provides a number of instance modifiers + for use in initializing the test case. + + Note: Instance modifiers are getters that return + the same instance after modifying it's state. - - + - Compare two objects of the same type + The argument list to be provided to the test - + - NUnitEqualityComparer encapsulates NUnit's handling of - equality tests between objects. + The expected result to be returned - + - + Set to true if this has an expected result - + - Compares two objects for equality within a tolerance + The expected exception Type - The first object to compare - The second object to compare - The tolerance to use in the comparison - - + - If true, all string comparisons will ignore case + The FullName of the expected exception - + - If true, arrays will be treated as collections, allowing - those of different dimensions to be compared + The name to be used for the test - + - Comparison objects used in comparisons for some constraints. + The description of the test - + - Compares two objects for equality within a tolerance. + A dictionary of properties, used to add information + to tests without requiring the class to change. - + - Helper method to compare two arrays + If true, indicates that the test case is to be ignored - + - Method to compare two DirectoryInfo objects + If true, indicates that the test case is marked explicit - first directory to compare - second directory to compare - true if equivalent, false if not - + - Returns the default NUnitEqualityComparer + The reason for ignoring a test case - + - Gets and sets a flag indicating whether case should - be ignored in determining equality. + Initializes a new instance of the class. + The arguments. - + - Gets and sets a flag indicating that arrays should be - compared as collections, without regard to their shape. + Initializes a new instance of the class. + The argument. - + - Gets and sets an external comparer to be used to - test for equality. It is applied to members of - collections, in place of NUnit's own logic. + Initializes a new instance of the class. + The first argument. + The second argument. - + - Gets the list of failure points for the last Match performed. + Initializes a new instance of the class. + The first argument. + The second argument. + The third argument. - + - FailurePoint class represents one point of failure - in an equality test. + Sets the expected result for the test + The expected result + A modified TestCaseData - + - The location of the failure + Sets the expected exception type for the test + Type of the expected exception. + The modified TestCaseData instance - + - The expected value + Sets the expected exception type for the test + FullName of the expected exception. + The modified TestCaseData instance - + - The actual value + Sets the name of the test case + The modified TestCaseData instance - + - Indicates whether the expected value is valid + Sets the description for the test case + being constructed. + The description. + The modified TestCaseData instance. - + - Indicates whether the actual value is valid + Applies a category to the test + + - + - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. + Applies a named property to the test + + + - + - The expected path used in the constraint + Applies a named property to the test + + + - + - The actual path being tested + Applies a named property to the test + + + - + - Flag indicating whether a caseInsensitive comparison should be made + Ignores this TestCase. + - + - Construct a PathConstraint for a give expected path + Ignores this TestCase, specifying the reason. - The expected path + The reason. + - + - Test whether the constraint is satisfied by a given value + Marks this TestCase as Explicit - The value to be tested - True for success, false for failure + - + - Returns true if the expected path and actual path match + Marks this TestCase as Explicit, specifying the reason. + The reason. + - + - Returns the string representation of this constraint + Gets the argument list to be provided to the test - + - Canonicalize the provided path + Gets the expected result - - The path in standardized form - + - Test whether two paths are the same + Returns true if the result has been set - The first path - The second path - Indicates whether case should be ignored - - + - Test whether one path is under another path + Gets the expected exception Type - The first path - supposed to be the parent path - The second path - supposed to be the child path - Indicates whether case should be ignored - - + - Test whether one path is the same as or under another path + Gets the FullName of the expected exception - The first path - supposed to be the parent path - The second path - supposed to be the child path - - + - Modifies the current instance to be case-insensitve - and returns it. + Gets the name to be used for the test - + - Modifies the current instance to be case-sensitve - and returns it. + Gets the description of the test - + - Summary description for SamePathConstraint. + Gets a value indicating whether this is ignored. + true if ignored; otherwise, false. - + - Initializes a new instance of the class. + Gets a value indicating whether this is explicit. - The expected path + true if explicit; otherwise, false. - + - Test whether the constraint is satisfied by a given value + Gets the ignore reason. - The expected path - The actual path - True for success, false for failure + The ignore reason. - + - Write the constraint description to a MessageWriter + Gets a list of categories associated with this test. - The writer on which the description is displayed - + - SubPathConstraint tests that the actual path is under the expected path + Gets the property dictionary for this test - + - Initializes a new instance of the class. + Provide the context information of the current test - The expected path - + - Test whether the constraint is satisfied by a given value + Constructs a TestContext using the provided context dictionary - The expected path - The actual path - True for success, false for failure + A context dictionary - + - Write the constraint description to a MessageWriter - - The writer on which the description is displayed - - - - SamePathOrUnderConstraint tests that one path is under another + Get the current test context. This is created + as needed. The user may save the context for + use within a test, but it should not be used + outside the test for which it is created. - + - Initializes a new instance of the class. + Gets a TestAdapter representing the currently executing test in this context. - The expected path - + - Test whether the constraint is satisfied by a given value + Gets a ResultAdapter representing the current result for the test + executing in this context. - The expected path - The actual path - True for success, false for failure - + - Write the constraint description to a MessageWriter + Gets the directory containing the current test assembly. - The writer on which the description is displayed - + - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. + Gets the directory to be used for outputing files created + by this test run. - + - Construct a PredicateConstraint from a predicate + TestAdapter adapts a Test for consumption by + the user test code. - + - Determines whether the predicate succeeds when applied - to the actual value. + Constructs a TestAdapter for this context + The context dictionary - + - Writes the description to a MessageWriter + The name of the test. - + - NotConstraint negates the effect of some other constraint + The FullName of the test - + - Initializes a new instance of the class. + The properties of the test. - The base constraint to be negated. - + - Test whether the constraint is satisfied by a given value + ResultAdapter adapts a TestResult for consumption by + the user test code. - The value to be tested - True for if the base constraint fails, false if it succeeds - + - Write the constraint description to a MessageWriter + Construct a ResultAdapter for a context - The writer on which the description is displayed + The context holding the result - + - Write the actual value for a failing constraint test to a MessageWriter. + The TestState of current test. This maps to the ResultState + used in nunit.core and is subject to change in the future. - The writer on which the actual value is displayed - + - AllItemsConstraint applies another constraint to each - item in a collection, succeeding if they all succeed. + The TestStatus of current test. This enum will be used + in future versions of NUnit and so is to be preferred + to the TestState value. - + - Construct an AllItemsConstraint on top of an existing constraint + Provides details about a test - - + - Apply the item constraint to each item in the collection, - failing if any item fails. + Creates an instance of TestDetails - - + The fixture that the test is a member of, if available. + The method that implements the test, if available. + The full name of the test. + A string representing the type of test, e.g. "Test Case". + Indicates if the test represents a suite of tests. - + - Write a description of this constraint to a MessageWriter + The fixture that the test is a member of, if available. - - + - SomeItemsConstraint applies another constraint to each - item in a collection, succeeding if any of them succeeds. + The method that implements the test, if available. - + - Construct a SomeItemsConstraint on top of an existing constraint + The full name of the test. - - + - Apply the item constraint to each item in the collection, - succeeding if any item succeeds. + A string representing the type of test, e.g. "Test Case". - - - + - Write a description of this constraint to a MessageWriter + Indicates if the test represents a suite of tests. - - + - NoItemConstraint applies another constraint to each - item in a collection, failing if any of them succeeds. + The ResultState enum indicates the result of running a test - + - Construct a NoItemConstraint on top of an existing constraint + The result is inconclusive - - + - Apply the item constraint to each item in the collection, - failing if any item fails. + The test was not runnable. - - - + - Write a description of this constraint to a MessageWriter + The test has been skipped. - - + - ExactCoutConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. + The test has been ignored. - + - Construct an ExactCountConstraint on top of an existing constraint + The test succeeded - - - + - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. + The test failed - - - + - Write a description of this constraint to a MessageWriter + The test encountered an unexpected exception - - + - PropertyExistsConstraint tests that a named property - exists on the object provided through Match. - - Originally, PropertyConstraint provided this feature - in addition to making optional tests on the vaue - of the property. The two constraints are now separate. + The test was cancelled by the user - + - Initializes a new instance of the class. + The TestStatus enum indicates the result of running a test - The name of the property. - + - Test whether the property exists for a given object + The test was inconclusive - The object to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + The test has skipped - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. + The test succeeded - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + The test failed - - + - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained constraint. + Helper class with static methods used to supply constraints + that operate on strings. - + - Initializes a new instance of the class. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - The name. - The constraint to apply to the property. - + - Test whether the constraint is satisfied by a given value + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. - The writer on which the actual value is displayed - + - Returns the string representation of the constraint. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - - + - RangeConstraint tests whethe two values are within a - specified range. + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. - + - Initializes a new instance of the class. + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. - From. - To. - + - Test whether the constraint is satisfied by a given value + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - The writer on which the description is displayed - + - ResolvableConstraintExpression is used to represent a compound - constraint being constructed at a point where the last operator - may either terminate the expression or may have additional - qualifying constraints added to it. - - It is used, for example, for a Property element or for - an Exception element, either of which may be optionally - followed by constraints that apply to the property or - exception. + TextMessageWriter writes constraint descriptions and messages + in displayable form as a text stream. It tailors the display + of individual message components to form the standard message + format of NUnit assertion failure messages. - + - Create a new instance of ResolvableConstraintExpression + MessageWriter is the abstract base for classes that write + constraint descriptions and messages in some form. The + class has separate methods for writing various components + of a message, allowing implementations to tailor the + presentation as needed. - + - Create a new instance of ResolvableConstraintExpression, - passing in a pre-populated ConstraintBuilder. + Construct a MessageWriter given a culture - + - Resolve the current expression to a Constraint + Method to write single line message with optional args, usually + written to precede the general failure message. + The message to be written + Any arguments used in formatting the message - + - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + The indentation level of the message + The message to be written + Any arguments used in formatting the message - + - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + The constraint that failed - + - This operator creates a constraint that is satisfied only if both - argument constraints are satisfied. + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + The expected value + The actual value causing the failure - + - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. + Display Expected and Actual lines for given values, including + a tolerance value on the Expected line. + The expected value + The actual value causing the failure + The tolerance within which the test was made - + - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in locating the point where the strings differ + If true, the strings should be clipped to fit the line - + - This operator creates a constraint that is satisfied if either - of the argument constraints is satisfied. + Writes the text for a connector. + The connector. - + - This operator creates a constraint that is satisfied if the - argument constraint is not satisfied. + Writes the text for a predicate. + The predicate. - + - Appends an And Operator to the expression + Writes the text for an expected value. + The expected value. - + - Appends an Or operator to the expression. + Writes the text for a modifier + The modifier. - + - ReusableConstraint wraps a resolved constraint so that it - may be saved and reused as needed. + Writes the text for an actual value. + The actual value. - + - Construct a ReusableConstraint + Writes the text for a generalized value. - The constraint or expression to be reused + The value. - + - Conversion operator from a normal constraint to a ReusableConstraint. + Writes the text for a collection value, + starting at a particular point, to a max length - The original constraint to be wrapped as a ReusableConstraint - + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write - + - Returns the string representation of the constraint. + Abstract method to get the max line length - A string representing the constraint - + - Resolves the ReusableConstraint by returning the constraint - that it originally wrapped. + Prefix used for the expected value line of a message - A resolved constraint - + - SameAsConstraint tests whether an object is identical to - the object passed to its constructor + Prefix used for the actual value line of a message - + - Initializes a new instance of the class. + Length of a message prefix - The expected object. - + - Test whether the constraint is satisfied by a given value + Construct a TextMessageWriter - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Construct a TextMessageWriter, specifying a user message + and optional formatting arguments. - The writer on which the description is displayed + + - + - BinarySerializableConstraint tests whether - an object is serializable in binary format. + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + The indentation level of the message + The message to be written + Any arguments used in formatting the message - + - Test whether the constraint is satisfied by a given value + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. - The value to be tested - True for success, false for failure + The constraint that failed - + - Write the constraint description to a MessageWriter + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. - The writer on which the description is displayed + The expected value + The actual value causing the failure - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Display Expected and Actual lines for given values, including + a tolerance value on the expected line. - The writer on which the actual value is displayed + The expected value + The actual value causing the failure + The tolerance within which the test was made - + - Returns the string representation + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in string comparisons + If true, clip the strings to fit the max line length - + - BinarySerializableConstraint tests whether - an object is serializable in binary format. + Writes the text for a connector. + The connector. - + - Test whether the constraint is satisfied by a given value + Writes the text for a predicate. - The value to be tested - True for success, false for failure + The predicate. - + - Write the constraint description to a MessageWriter + Write the text for a modifier. - The writer on which the description is displayed + The modifier. - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Writes the text for an expected value. - The writer on which the actual value is displayed + The expected value. - + - Returns the string representation of this constraint + Writes the text for an actual value. + The actual value. - + - StringConstraint is the abstract base for constraints - that operate on strings. It supports the IgnoreCase - modifier for string operations. + Writes the text for a generalized value. + The value. - + - The expected value + Writes the text for a collection value, + starting at a particular point, to a max length + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write - + - Indicates whether tests should be case-insensitive + Write the generic 'Expected' line for a constraint + The constraint that failed - + - Constructs a StringConstraint given an expected value + Write the generic 'Expected' line for a given value The expected value - + - Modify the constraint to ignore case in matching. + Write the generic 'Expected' line for a given value + and tolerance. + The expected value + The tolerance within which the test was made - + - EmptyStringConstraint tests whether a string is empty. + Write the generic 'Actual' line for a constraint + The constraint for which the actual value is to be written - + - Test whether the constraint is satisfied by a given value + Write the generic 'Actual' line for a given value - The value to be tested - True for success, false for failure + The actual value causing a failure - + - Write the constraint description to a MessageWriter + Gets or sets the maximum line length for this writer - The writer on which the description is displayed - + - NullEmptyStringConstraint tests whether a string is either null or empty. + Helper class with properties and methods that supply + constraints that operate on exceptions. - + - Constructs a new NullOrEmptyStringConstraint + Creates a constraint specifying the exact type of exception expected - + - Test whether the constraint is satisfied by a given value + Creates a constraint specifying the exact type of exception expected - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Creates a constraint specifying the type of exception expected - The writer on which the description is displayed - + - SubstringConstraint can test whether a string contains - the expected substring. + Creates a constraint specifying the type of exception expected - + - Initializes a new instance of the class. + Creates a constraint specifying an expected exception - The expected. - + - Test whether the constraint is satisfied by a given value + Creates a constraint specifying an exception with a given InnerException - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Creates a constraint specifying an expected TargetInvocationException - The writer on which the description is displayed - + - StartsWithConstraint can test whether a string starts - with an expected substring. + Creates a constraint specifying an expected TargetInvocationException - + - Initializes a new instance of the class. + Creates a constraint specifying an expected TargetInvocationException - The expected string - + - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. + Creates a constraint specifying that no exception is thrown - - - + - Write the constraint description to a MessageWriter + Attribute used to apply a category to a test - The writer on which the description is displayed - + - EndsWithConstraint can test whether a string ends - with an expected substring. + The name of the category - + - Initializes a new instance of the class. + Construct attribute for a given category based on + a name. The name may not contain the characters ',', + '+', '-' or '!'. However, this is not checked in the + constructor since it would cause an error to arise at + as the test was loaded without giving a clear indication + of where the problem is located. The error is handled + in NUnitFramework.cs by marking the test as not + runnable. - The expected string + The name of the category - + - Test whether the constraint is matched by the actual value. - This is a template method, which calls the IsMatch method - of the derived class. + Protected constructor uses the Type name as the name + of the category. - - - + - Write the constraint description to a MessageWriter + The name of the category - The writer on which the description is displayed - + - RegexConstraint can test whether a string matches - the pattern provided. + Used to mark a field for use as a datapoint when executing a theory + within the same fixture that requires an argument of the field's Type. - + - Initializes a new instance of the class. + Used to mark an array as containing a set of datapoints to be used + executing a theory within the same fixture that requires an argument + of the Type of the array elements. - The pattern. - + - Test whether the constraint is satisfied by a given value + Attribute used to provide descriptive text about a + test case or fixture. - The value to be tested - True for success, false for failure - + - Write the constraint description to a MessageWriter + Construct the attribute - The writer on which the description is displayed + Text describing the test - + - ThrowsConstraint is used to test the exception thrown by - a delegate by applying a constraint to it. + Gets the test description - + - Initializes a new instance of the class, - using a constraint to be applied to the exception. + Enumeration indicating how the expected message parameter is to be used - A constraint to apply to the caught exception. - - - Executes the code of the delegate and captures any exception. - If a non-null base constraint was provided, it applies that - constraint to the exception. - - A delegate representing the code to be tested - True if an exception is thrown and the constraint succeeds, otherwise false + + Expect an exact match + + + Expect a message containing the parameter string + + + Match the regular expression provided as a parameter + + + Expect a message that starts with the parameter string - + - Converts an ActualValueDelegate to a TestDelegate - before calling the primary overload. + ExpectedExceptionAttribute - - + - + - Write the constraint description to a MessageWriter + Constructor for a non-specific exception - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Constructor for a given type of exception - The writer on which the actual value is displayed + The type of the expected exception - + - Returns the string representation of this constraint + Constructor for a given exception name + The full name of the expected exception - + - Get the actual exception thrown - used by Assert.Throws. + Gets or sets the expected exception type - + - ThrowsNothingConstraint tests that a delegate does not - throw an exception. + Gets or sets the full Type name of the expected exception - + - Test whether the constraint is satisfied by a given value + Gets or sets the expected message text - The value to be tested - True if no exception is thrown, otherwise false - + - Converts an ActualValueDelegate to a TestDelegate - before calling the primary overload. + Gets or sets the user message displayed in case of failure - - - + - Write the constraint description to a MessageWriter + Gets or sets the type of match to be performed on the expected message - The writer on which the description is displayed - + - Write the actual value for a failing constraint test to a - MessageWriter. The default implementation simply writes - the raw value of actual, leaving it to the writer to - perform any formatting. + Gets the name of a method to be used as an exception handler - The writer on which the actual value is displayed - + - Modes in which the tolerance value for a comparison can - be interpreted. + ExplicitAttribute marks a test or test fixture so that it will + only be run if explicitly executed from the gui or command line + or if it is included by use of a filter. The test will not be + run simply because an enclosing suite is run. - + - The tolerance was created with a value, without specifying - how the value would be used. This is used to prevent setting - the mode more than once and is generally changed to Linear - upon execution of the test. + Default constructor - + - The tolerance is used as a numeric range within which - two compared values are considered to be equal. + Constructor with a reason + The reason test is marked explicit - + - Interprets the tolerance as the percentage by which - the two compared values my deviate from each other. + The reason test is marked explicit - + - Compares two values based in their distance in - representable numbers. + Attribute used to mark a test that is to be ignored. + Ignored tests result in a warning message when the + tests are run. - + - The Tolerance class generalizes the notion of a tolerance - within which an equality test succeeds. Normally, it is - used with numeric types, but it can be used with any - type that supports taking a difference between two - objects and comparing that difference to a value. + Constructs the attribute without giving a reason + for ignoring the test. - + - Constructs a linear tolerance of a specdified amount + Constructs the attribute giving a reason for ignoring the test + The reason for ignoring the test - + - Constructs a tolerance given an amount and ToleranceMode + The reason for ignoring a test - + - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. + Abstract base for Attributes that are used to include tests + in the test run based on environmental settings. - + - Returns an empty Tolerance object, equivalent to - specifying no tolerance. In most cases, it results - in an exact match but for floats and doubles a - default tolerance may be used. + Constructor with no included items specified, for use + with named property syntax. - + - Returns a zero Tolerance object, equivalent to - specifying an exact match. + Constructor taking one or more included items + Comma-delimited list of included items - + - Gets the ToleranceMode for the current Tolerance + Name of the item that is needed in order for + a test to run. Multiple itemss may be given, + separated by a comma. - + - Gets the value of the current Tolerance instance. + Name of the item to be excluded. Multiple items + may be given, separated by a comma. - + - Returns a new tolerance, using the current amount as a percentage. + The reason for including or excluding the test - + - Returns a new tolerance, using the current amount in Ulps. + PlatformAttribute is used to mark a test fixture or an + individual method as applying to a particular platform only. - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of days. + Constructor with no platforms specified, for use + with named property syntax. - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of hours. + Constructor taking one or more platforms + Comma-deliminted list of platforms - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of minutes. + CultureAttribute is used to mark a test fixture or an + individual method as applying to a particular Culture only. - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of seconds. + Constructor with no cultures specified, for use + with named property syntax. - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of milliseconds. + Constructor taking one or more cultures + Comma-deliminted list of cultures - + - Returns a new tolerance with a TimeSpan as the amount, using - the current amount as a number of clock ticks. + Marks a test to use a combinatorial join of any argument data + provided. NUnit will create a test case for every combination of + the arguments provided. This can result in a large number of test + cases and so should be used judiciously. This is the default join + type, so the attribute need not be used except as documentation. - + - Returns true if the current tolerance is empty. + PropertyAttribute is used to attach information to a test as a name/value pair.. - + - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. + Construct a PropertyAttribute with a name and string value + The name of the property + The property value - + - The expected Type used by the constraint + Construct a PropertyAttribute with a name and int value + The name of the property + The property value - + - Construct a TypeConstraint for a given Type + Construct a PropertyAttribute with a name and double value - + The name of the property + The property value - + - Write the actual value for a failing constraint test to a - MessageWriter. TypeConstraints override this method to write - the name of the type. + Constructor for derived classes that set the + property dictionary directly. - The writer on which the actual value is displayed - + - ExactTypeConstraint is used to test that an object - is of the exact type provided in the constructor + Constructor for use by derived classes that use the + name of the type as the property name. Derived classes + must ensure that the Type of the property value is + a standard type supported by the BCL. Any custom + types will cause a serialization Exception when + in the client. - + - Construct an ExactTypeConstraint for a given Type + Gets the property dictionary for this attribute - The expected Type. - + - Test that an object is of the exact type specified + Default constructor - The actual value. - True if the tested object is of the exact type provided, otherwise false. - + - Write the description of this constraint to a MessageWriter + Marks a test to use pairwise join of any argument data provided. + NUnit will attempt too excercise every pair of argument values at + least once, using as small a number of test cases as it can. With + only two arguments, this is the same as a combinatorial join. - The MessageWriter to use - + - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. + Default constructor - + - Constructs an ExceptionTypeConstraint + Marks a test to use a sequential join of any argument data + provided. NUnit will use arguements for each parameter in + sequence, generating test cases up to the largest number + of argument values provided and using null for any arguments + for which it runs out of values. Normally, this should be + used with the same number of arguments for each parameter. - + - Write the actual value for a failing constraint test to a - MessageWriter. Overriden to write additional information - in the case of an Exception. + Default constructor - The MessageWriter to use - + - InstanceOfTypeConstraint is used to test that an object - is of the same type provided or derived from it. + Summary description for MaxTimeAttribute. - + - Construct an InstanceOfTypeConstraint for the type provided + Construct a MaxTimeAttribute, given a time in milliseconds. - The expected Type + The maximum elapsed time in milliseconds - + - Test whether an object is of the specified type or a derived type + RandomAttribute is used to supply a set of random values + to a single parameter of a parameterized test. - The object to be tested - True if the object is of the provided type or derives from it, otherwise false. - + - Write a description of this constraint to a MessageWriter + ValuesAttribute is used to provide literal arguments for + an individual parameter of a test. - The MessageWriter to use - + - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. + Abstract base class for attributes that apply to parameters + and supply data for the parameter. - + - Construct an AssignableFromConstraint for the type provided + Gets the data to be provided to the specified parameter - - + - Test whether an object can be assigned from the specified type + The collection of data to be returned. Must + be set by any derived attribute classes. + We use an object[] so that the individual + elements may have their type changed in GetData + if necessary. - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. - + - Write a description of this constraint to a MessageWriter + Construct with one argument - The MessageWriter to use + - + - AssignableToConstraint is used to test that an object - can be assigned to a given Type. + Construct with two arguments + + - + - Construct an AssignableToConstraint for the type provided + Construct with three arguments - + + + - + - Test whether an object can be assigned to the specified type + Construct with an array of arguments - The object to be tested - True if the object can be assigned a value of the expected Type, otherwise false. + - + - Write a description of this constraint to a MessageWriter + Get the collection of values to be used as arguments - The MessageWriter to use - + - Thrown when an assertion failed. + Construct a set of doubles from 0.0 to 1.0, + specifying only the count. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception + - + - Serialization Constructor + Construct a set of doubles from min to max + + + - + - Thrown when an assertion failed. + Construct a set of ints from min to max + + + - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - + - Serialization Constructor + Get the collection of values to be used as arguments - + - Thrown when a test executes inconclusively. + RangeAttribute is used to supply a range of values to an + individual parameter of a parameterized test. - - - - The error message that explains - the reason for the exception - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - + - Serialization Constructor + Construct a range of ints using default step of 1 + + - + - Thrown when an assertion failed. + Construct a range of ints specifying the step size + + + - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - + - Serialization Constructor + Construct a range of longs + + + - + - + Construct a range of doubles - + + + - + - Compares two objects of a given Type for equality within a tolerance + Construct a range of floats - The first object to compare - The second object to compare - The tolerance to use in the comparison - + + + - + - The different targets a test action attribute can be applied to + RepeatAttribute may be applied to test case in order + to run it multiple times. - + - Default target, which is determined by where the action attribute is attached + Construct a RepeatAttribute + The number of times to run the test - + - Target a individual test case + RequiredAddinAttribute may be used to indicate the names of any addins + that must be present in order to run some or all of the tests in an + assembly. If the addin is not loaded, the entire assembly is marked + as NotRunnable. - + - Target a suite of test cases + Initializes a new instance of the class. + The required addin. - + - Delegate used by tests that execute code and - capture any thrown exception. + Gets the name of required addin. + The required addin name. - + - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. + Summary description for SetCultureAttribute. - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + Construct given the name of a culture + - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Summary description for SetUICultureAttribute. - - - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Construct given the name of a culture - - + - + - Helper for Assert.AreEqual(double expected, double actual, ...) - allowing code generation to work consistently. + SetUpAttribute is used in a TestFixture to identify a method + that is called immediately before each test is run. It is + also used in a SetUpFixture to identify the method that is + called once, before any of the subordinate tests are run. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - + - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. + Attribute used to mark a class that contains one-time SetUp + and/or TearDown methods that apply to all the tests in a + namespace or an assembly. - The message to initialize the with. - Arguments to be used in formatting the message - + - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. + Attribute used to mark a static (shared in VB) property + that returns a list of tests. - The message to initialize the with. - + - Throws a with the message and arguments - that are passed in. This allows a test to be cut short, with a result - of success returned to NUnit. + Attribute used in a TestFixture to identify a method that is + called immediately after each test is run. It is also used + in a SetUpFixture to identify the method that is called once, + after all subordinate tests have run. In either case, the method + is guaranteed to be called, even if an exception is thrown. - + - Throws an with the message and arguments - that are passed in. This is used by the other Assert functions. + Provide actions to execute before and after tests. - The message to initialize the with. - Arguments to be used in formatting the message - + - Throws an with the message that is - passed in. This is used by the other Assert functions. + When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - The message to initialize the with. - + - Throws an . - This is used by the other Assert functions. + Executed before each test is run + Provides details about the test that is going to be run. - + - Throws an with the message and arguments - that are passed in. This causes the test to be reported as ignored. + Executed after each test is run - The message to initialize the with. - Arguments to be used in formatting the message + Provides details about the test that has just been run. - + - Throws an with the message that is - passed in. This causes the test to be reported as ignored. + Provides the target for the action attribute - The message to initialize the with. + The target for the action attribute - + - Throws an . - This causes the test to be reported as ignored. + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + - + - Throws an with the message and arguments - that are passed in. This causes the test to be reported as inconclusive. + Descriptive text for this test - The message to initialize the with. - Arguments to be used in formatting the message - + - Throws an with the message that is - passed in. This causes the test to be reported as inconclusive. + TestCaseAttribute is used to mark parameterized test cases + and provide them with their arguments. - The message to initialize the with. - + - Throws an . - This causes the test to be reported as Inconclusive. + Construct a TestCaseAttribute with a list of arguments. + This constructor is not CLS-Compliant + - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Construct a TestCaseAttribute with a single argument - A Constraint to be applied - The actual value to test + - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Construct a TestCaseAttribute with a two arguments - A Constraint to be applied - The actual value to test - The message that will be displayed on failure + + - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Construct a TestCaseAttribute with a three arguments - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message + + + - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets the list of arguments to a test case - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets or sets the expected result. Use + ExpectedResult by preference. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure + The result. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets or sets the expected result. - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message + The result. - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets a flag indicating whether an expected + result has been set. - A Constraint to be applied - The actual value to test - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets a list of categories associated with this test; - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Gets or sets the category associated with this test. + May be a single category or a comma-separated list. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message + Gets or sets the expected exception. + + The expected exception. - + - Asserts that a condition is true. If the condition is false the method throws - an . + Gets or sets the name the expected exception. - The evaluated condition - The message to display if the condition is false + The expected name of the exception. - + - Asserts that a condition is true. If the condition is false the method throws - an . + Gets or sets the expected message of the expected exception - The evaluated condition + The expected message of the exception. - + - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. + Gets or sets the type of match to be performed on the expected message - A TestDelegate to be executed - A ThrowsConstraint used in the test - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. + Gets or sets the description. - A Constraint to be applied - The actual value to test + The description. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. + Gets or sets the name of the test. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure + The name of the test. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. + Gets or sets the ignored status of the test - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Gets or sets the ignored status of the test - A constraint to be satisfied by the exception - A TestSnippet delegate - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws a particular exception when called. + Gets or sets the explicit status of the test - A constraint to be satisfied by the exception - A TestSnippet delegate - The message that will be displayed on failure - + - Verifies that a delegate throws a particular exception when called. + Gets or sets the reason for not running the test - A constraint to be satisfied by the exception - A TestSnippet delegate - + - Verifies that a delegate throws a particular exception when called. + Gets or sets the reason for not running the test. + Set has the side effect of marking the test as ignored. - The exception Type expected - A TestSnippet delegate - The message that will be displayed on failure - Arguments to be used in formatting the message + The ignore reason. - + - Verifies that a delegate throws a particular exception when called. + FactoryAttribute indicates the source to be used to + provide test cases for a test method. - The exception Type expected - A TestSnippet delegate - The message that will be displayed on failure - + - Verifies that a delegate throws a particular exception when called. + Construct with the name of the data source, which must + be a property, field or method of the test class itself. - The exception Type expected - A TestSnippet delegate + An array of the names of the factories that will provide data - + - Verifies that a delegate throws a particular exception when called. + Construct with a Type, which must implement IEnumerable - Type of the expected exception - A TestSnippet delegate - The message that will be displayed on failure - Arguments to be used in formatting the message + The Type that will provide data - + - Verifies that a delegate throws a particular exception when called. + Construct with a Type and name. + that don't support params arrays. - Type of the expected exception - A TestSnippet delegate - The message that will be displayed on failure + The Type that will provide data + The name of the method, property or field that will provide data - + - Verifies that a delegate throws a particular exception when called. + The name of a the method, property or fiend to be used as a source - Type of the expected exception - A TestSnippet delegate - + - Verifies that a delegate throws an exception when called - and returns it. + A Type to be used as a source - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception when called - and returns it. + Gets or sets the category associated with this test. + May be a single category or a comma-separated list. - A TestDelegate - The message that will be displayed on failure - + + + [TestFixture] + public class ExampleClass + {} + + + - Verifies that a delegate throws an exception when called - and returns it. + Default constructor - A TestDelegate - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Construct with a object[] representing a set of arguments. + In .NET 2.0, the arguments may later be separated into + type arguments and constructor arguments. - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message + - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Descriptive text for this fixture - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Gets and sets the category for this fixture. + May be a comma-separated list of categories. - The expected Exception Type - A TestDelegate - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Gets a list of categories for this fixture - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + The arguments originally provided to the attribute - The expected Exception Type - A TestDelegate - The message that will be displayed on failure - + - Verifies that a delegate throws an exception of a certain Type - or one derived from it when called and returns it. + Gets or sets a value indicating whether this should be ignored. - The expected Exception Type - A TestDelegate + true if ignore; otherwise, false. - + - Verifies that a delegate does not throw an exception + Gets or sets the ignore reason. May set Ignored as a side effect. - A TestSnippet delegate - The message that will be displayed on failure - Arguments to be used in formatting the message + The ignore reason. - + - Verifies that a delegate does not throw an exception. + Get or set the type arguments. If not set + explicitly, any leading arguments that are + Types are taken as type arguments. - A TestSnippet delegate - The message that will be displayed on failure - + - Verifies that a delegate does not throw an exception. + Attribute used to identify a method that is + called before any tests in a fixture are run. - A TestSnippet delegate - + - Asserts that a condition is true. If the condition is false the method throws - an . + Attribute used to identify a method that is called after + all the tests in a fixture have run. The method is + guaranteed to be called, even if an exception is thrown. - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. - The evaluated condition - The message to display in case of failure + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + - + - Asserts that a condition is true. If the condition is false the method throws - an . + Used on a method, marks the test with a timeout value in milliseconds. + The test will be run in a separate thread and is cancelled if the timeout + is exceeded. Used on a method or assembly, sets the default timeout + for all contained test methods. - The evaluated condition - + - Asserts that a condition is true. If the condition is false the method throws - an . + Construct a TimeoutAttribute given a time in milliseconds - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + The timeout value in milliseconds - + - Asserts that a condition is true. If the condition is false the method throws - an . + Marks a test that must run in the STA, causing it + to run in a separate thread if necessary. + + On methods, you may also use STAThreadAttribute + to serve the same purpose. - The evaluated condition - The message to display in case of failure - + - Asserts that a condition is true. If the condition is false the method throws - an . + Construct a RequiresSTAAttribute - The evaluated condition - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + Marks a test that must run in the MTA, causing it + to run in a separate thread if necessary. + + On methods, you may also use MTAThreadAttribute + to serve the same purpose. + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure + Construct a RequiresMTAAttribute + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition + Marks a test that must run on a separate thread. + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure - Array of objects to be used in formatting the message + Construct a RequiresThreadAttribute + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition - The message to display in case of failure + Construct a RequiresThreadAttribute, specifying the apartment + - + - Asserts that a condition is false. If the condition is true the method throws - an . - - The evaluated condition + ValueSourceAttribute indicates the source to be used to + provide data for one parameter of a test method. + - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Construct with the name of the factory - for use with languages + that don't support params arrays. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The name of the data source to be used - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. - - The object that is to be tested - The message to display in case of failure + Construct with a Type and name - for use with languages + that don't support params arrays. + + The Type that will provide data + The name of the method, property or field that will provide data - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + The name of a the method, property or fiend to be used as a source - The object that is to be tested - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + A Type to be used as a source - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + AllItemsConstraint applies another constraint to each + item in a collection, succeeding if they all succeed. - The object that is to be tested - The message to display in case of failure - + - Verifies that the object that is passed in is not equal to null - If the object is null then an - is thrown. + Abstract base class used for prefixes - The object that is to be tested - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + The Constraint class is the base of all built-in constraints + within NUnit. It provides the operator overloads used to combine + constraints. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + The IConstraintExpression interface is implemented by all + complete and resolvable constraints and expressions. - The object that is to be tested - The message to display in case of failure - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Return the top-level constraint for this expression - The object that is to be tested + - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + Static UnsetObject used to detect derived constraints + failing to set the actual value. - The object that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + The actual value being tested against a constraint - The object that is to be tested - The message to display in case of failure - + - Verifies that the object that is passed in is equal to null - If the object is not null then an - is thrown. + The display name of this Constraint for use by ToString() - The object that is to be tested - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Argument fields used by ToString(); - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + The builder holding this constraint - The value that is to be tested - The message to display in case of failure - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Construct a constraint with no arguments - The value that is to be tested - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Construct a constraint with one argument - The value that is to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Construct a constraint with two arguments - The value that is to be tested - The message to display in case of failure - + - Verifies that the double that is passed in is an NaN value. - If the object is not NaN then an - is thrown. + Sets the ConstraintBuilder holding this constraint - The value that is to be tested - + - Assert that a string is empty - that is equal to string.Empty + Write the failure message to the MessageWriter provided + as an argument. The default implementation simply passes + the constraint and the actual value to the writer, which + then displays the constraint description and the value. + + Constraints that need to provide additional details, + such as where the error occured can override this. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The MessageWriter on which to display the message - + - Assert that a string is empty - that is equal to string.Empty + Test whether the constraint is satisfied by a given value - The string to be tested - The message to display in case of failure + The value to be tested + True for success, false for failure - + - Assert that a string is empty - that is equal to string.Empty + Test whether the constraint is satisfied by an + ActualValueDelegate that returns the value to be tested. + The default implementation simply evaluates the delegate + but derived classes may override it to provide for delayed + processing. - The string to be tested + An + True for success, false for failure - + - Assert that an array, list or other collection is empty + Test whether the constraint is satisfied by a given reference. + The default implementation simply dereferences the value but + derived classes may override it to provide for delayed processing. - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message + A reference to the value to be tested + True for success, false for failure - + - Assert that an array, list or other collection is empty + Write the constraint description to a MessageWriter - An array, list or other collection implementing ICollection - The message to display in case of failure + The writer on which the description is displayed - + - Assert that an array, list or other collection is empty + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - An array, list or other collection implementing ICollection + The writer on which the actual value is displayed - + - Assert that a string is not empty - that is not equal to string.Empty + Default override of ToString returns the constraint DisplayName + followed by any arguments within angle brackets. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Assert that a string is not empty - that is not equal to string.Empty + Returns the string representation of this constraint - The string to be tested - The message to display in case of failure - + - Assert that a string is not empty - that is not equal to string.Empty + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. - The string to be tested - + - Assert that an array, list or other collection is not empty + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. - An array, list or other collection implementing ICollection - The message to display in case of failure - Array of objects to be used in formatting the message - + - Assert that an array, list or other collection is not empty + This operator creates a constraint that is satisfied if the + argument constraint is not satisfied. - An array, list or other collection implementing ICollection - The message to display in case of failure - + - Assert that an array, list or other collection is not empty + Returns a DelayedConstraint with the specified delay time. - An array, list or other collection implementing ICollection + The delay in milliseconds. + - + - Assert that a string is either null or equal to string.Empty + Returns a DelayedConstraint with the specified delay time + and polling interval. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message + The delay in milliseconds. + The interval at which to test the constraint. + - + - Assert that a string is either null or equal to string.Empty - - The string to be tested - The message to display in case of failure + The display name of this Constraint for use by ToString(). + The default value is the name of the constraint with + trailing "Constraint" removed. Derived classes may set + this to another name in their constructors. + - + - Assert that a string is either null or equal to string.Empty + Returns a ConstraintExpression by appending And + to the current constraint. - The string to be tested - + - Assert that a string is not null or empty + Returns a ConstraintExpression by appending And + to the current constraint. - The string to be tested - The message to display in case of failure - Array of objects to be used in formatting the message - + - Assert that a string is not null or empty + Returns a ConstraintExpression by appending Or + to the current constraint. - The string to be tested - The message to display in case of failure - + - Assert that a string is not null or empty + Class used to detect any derived constraints + that fail to set the actual value in their + Matches override. - The string to be tested - + - Asserts that an object may be assigned a value of a given Type. + The base constraint - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may be assigned a value of a given Type. + Construct given a base constraint - The expected Type. - The object under examination - The message to display in case of failure + - + - Asserts that an object may be assigned a value of a given Type. + Construct an AllItemsConstraint on top of an existing constraint - The expected Type. - The object under examination + - + - Asserts that an object may be assigned a value of a given Type. + Apply the item constraint to each item in the collection, + failing if any item fails. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message + + - + - Asserts that an object may be assigned a value of a given Type. + Write a description of this constraint to a MessageWriter - The expected Type. - The object under examination - The message to display in case of failure + - + - Asserts that an object may be assigned a value of a given Type. + AndConstraint succeeds only if both members succeed. - The expected Type. - The object under examination - + - Asserts that an object may not be assigned a value of a given Type. + BinaryConstraint is the abstract base of all constraints + that combine two other constraints in some fashion. - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object may not be assigned a value of a given Type. + The first constraint being combined - The expected Type. - The object under examination - The message to display in case of failure - + - Asserts that an object may not be assigned a value of a given Type. + The second constraint being combined - The expected Type. - The object under examination - + - Asserts that an object may not be assigned a value of a given Type. + Construct a BinaryConstraint from two other constraints - The expected Type. - The object under examination - The message to display in case of failure - Array of objects to be used in formatting the message + The first constraint + The second constraint - + - Asserts that an object may not be assigned a value of a given Type. + Create an AndConstraint from two other constraints - The expected Type. - The object under examination - The message to display in case of failure + The first constraint + The second constraint - + - Asserts that an object may not be assigned a value of a given Type. + Apply both member constraints to an actual value, succeeding + succeeding only if both of them succeed. - The expected Type. - The object under examination + The actual value + True if the constraints both succeeded - + - Asserts that an object is an instance of a given type. + Write a description for this contraint to a MessageWriter - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message + The MessageWriter to receive the description - + - Asserts that an object is an instance of a given type. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - The expected Type - The object being examined - The message to display in case of failure + The writer on which the actual value is displayed - + - Asserts that an object is an instance of a given type. + AssignableFromConstraint is used to test that an object + can be assigned from a given Type. - The expected Type - The object being examined - + - Asserts that an object is an instance of a given type. + TypeConstraint is the abstract base for constraints + that take a Type as their expected value. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is an instance of a given type. + The expected Type used by the constraint - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is an instance of a given type. + Construct a TypeConstraint for a given Type - The expected Type - The object being examined + - + - Asserts that an object is an instance of a given type. + Write the actual value for a failing constraint test to a + MessageWriter. TypeConstraints override this method to write + the name of the type. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message + The writer on which the actual value is displayed - + - Asserts that an object is an instance of a given type. + Construct an AssignableFromConstraint for the type provided - The expected Type - The object being examined - The message to display in case of failure + - + - Asserts that an object is an instance of a given type. + Test whether an object can be assigned from the specified type - The expected Type - The object being examined + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. - + - Asserts that an object is not an instance of a given type. + Write a description of this constraint to a MessageWriter - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message + The MessageWriter to use - + - Asserts that an object is not an instance of a given type. + AssignableToConstraint is used to test that an object + can be assigned to a given Type. - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is not an instance of a given type. + Construct an AssignableToConstraint for the type provided - The expected Type - The object being examined + - + - Asserts that an object is not an instance of a given type. + Test whether an object can be assigned to the specified type - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. - + - Asserts that an object is not an instance of a given type. + Write a description of this constraint to a MessageWriter - The expected Type - The object being examined - The message to display in case of failure + The MessageWriter to use - + - Asserts that an object is not an instance of a given type. - - The expected Type - The object being examined + AttributeConstraint tests that a specified attribute is present + on a Type or other provider and that the value of the attribute + satisfies some other constraint. + - + - Asserts that an object is not an instance of a given type. + Constructs an AttributeConstraint for a specified attriute + Type and base constraint. - The expected Type - The object being examined - The message to display in case of failure - Array of objects to be used in formatting the message + + - + - Asserts that an object is not an instance of a given type. + Determines whether the Type or other provider has the + expected attribute and if its value matches the + additional constraint specified. - The expected Type - The object being examined - The message to display in case of failure - + - Asserts that an object is not an instance of a given type. + Writes a description of the attribute to the specified writer. - The expected Type - The object being examined - + - Verifies that two values are equal. If they are not, then an - is thrown. + Writes the actual value supplied to the specified writer. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns a string representation of the constraint. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + AttributeExistsConstraint tests for the presence of a + specified attribute on a Type. - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + Constructs an AttributeExistsConstraint for a specific attribute Type - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that two values are equal. If they are not, then an - is thrown. + Tests whether the object provides the expected attribute. - The expected value - The actual value - The message to display in case of failure + A Type, MethodInfo, or other ICustomAttributeProvider + True if the expected attribute is present, otherwise false - + - Verifies that two values are equal. If they are not, then an - is thrown. + Writes the description of the constraint to the specified writer - The expected value - The actual value - + - Verifies that two values are equal. If they are not, then an - is thrown. + BasicConstraint is the abstract base for constraints that + perform a simple comparison to a constant value. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are equal. If they are not, then an - is thrown. + Initializes a new instance of the class. - The expected value - The actual value - The message to display in case of failure + The expected. + The description. - + - Verifies that two values are equal. If they are not, then an - is thrown. + Test whether the constraint is satisfied by a given value - The expected value - The actual value + The value to be tested + True for success, false for failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Write the constraint description to a MessageWriter - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + The writer on which the description is displayed - + - Verifies that two values are equal. If they are not, then an - is thrown. + BinarySerializableConstraint tests whether + an object is serializable in binary format. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Test whether the constraint is satisfied by a given value - The expected value - The actual value + The value to be tested + True for success, false for failure - + - Verifies that two values are equal. If they are not, then an - is thrown. + Write the constraint description to a MessageWriter - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + The writer on which the description is displayed - + - Verifies that two values are equal. If they are not, then an - is thrown. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - The expected value - The actual value - The message to display in case of failure + The writer on which the actual value is displayed - + - Verifies that two values are equal. If they are not, then an - is thrown. + Returns the string representation - The expected value - The actual value - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + CollectionConstraint is the abstract base class for + constraints that operate on collections. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Construct an empty CollectionConstraint - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Construct a CollectionConstraint - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual + - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Determines whether the specified enumerable is empty. - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure - Array of objects to be used in formatting the message + The enumerable. + + true if the specified enumerable is empty; otherwise, false. + - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Test whether the constraint is satisfied by a given value - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual - The message to display in case of failure + The value to be tested + True for success, false for failure - + - Verifies that two doubles are equal considering a delta. If the - expected value is infinity then the delta value is ignored. If - they are not equal then an is - thrown. + Protected method to be implemented by derived classes - The expected value - The actual value - The maximum acceptable difference between the - the expected and the actual + + - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. + CollectionContainsConstraint is used to test whether a collection + contains an expected object as a member. - The value that is expected - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. - - The value that is expected - The actual value - The message to display in case of failure + CollectionItemsEqualConstraint is the abstract base class for all + collection constraints that apply some notion of item equality + as a part of their operation. + - + - Verifies that two objects are equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are not equal an is thrown. + Construct an empty CollectionConstraint - The value that is expected - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a CollectionConstraint - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied EqualityAdapter. + NOTE: For internal use only. - The expected value - The actual value - The message to display in case of failure + The EqualityAdapter to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied IComparer object. - The expected value - The actual value + The IComparer object to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied IComparer object. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + The IComparer object to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied Comparison object. - The expected value - The actual value - The message to display in case of failure + The IComparer object to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied IEqualityComparer object. - The expected value - The actual value + The IComparer object to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to use the supplied IEqualityComparer object. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + The IComparer object to use. + Self. - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Compares two collection members for equality - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Return a new CollectionTally for use in making tests - The expected value - The actual value + The collection to be included in the tally - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Flag the constraint to ignore case and return self. - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a CollectionContainsConstraint - The expected value - The actual value - The message to display in case of failure + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Test whether the expected item is contained in the collection - The expected value - The actual value + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Write a descripton of the constraint to a MessageWriter - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + CollectionEquivalentCOnstraint is used to determine whether two + collections are equivalent. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a CollectionEquivalentConstraint - The expected value - The actual value + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Test whether two collections are equivalent - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message + + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Write a description of this constraint to a MessageWriter - The expected value - The actual value - The message to display in case of failure + - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + CollectionOrderedConstraint is used to test whether a collection is ordered. - The expected value - The actual value - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Construct a CollectionOrderedConstraint - The expected value - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Modifies the constraint to use an IComparer and returns self. - The expected value - The actual value - The message to display in case of failure - + - Verifies that two values are not equal. If they are equal, then an - is thrown. + Modifies the constraint to use an IComparer<T> and returns self. - The expected value - The actual value - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Modifies the constraint to use a Comparison<T> and returns self. - The value that is expected - The actual value - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Modifies the constraint to test ordering by the value of + a specified property and returns self. - The value that is expected - The actual value - The message to display in case of failure - + - Verifies that two objects are not equal. Two objects are considered - equal if both are null, or if both have the same value. NUnit - has special semantics for some object types. - If they are equal an is thrown. + Test whether the collection is ordered - The value that is expected - The actual value + + - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + Write a description of the constraint to a MessageWriter - The expected object - The actual object - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + Returns the string representation of the constraint. - The expected object - The actual object - The message to display in case of failure + - + - Asserts that two objects refer to the same object. If they - are not the same an is thrown. + If used performs a reverse comparison - The expected object - The actual object - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + CollectionSubsetConstraint is used to determine whether + one collection is a subset of another - The expected object - The actual object - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + Construct a CollectionSubsetConstraint - The expected object - The actual object - The message to display in case of failure + The collection that the actual value is expected to be a subset of - + - Asserts that two objects do not refer to the same object. If they - are the same an is thrown. + Test whether the actual collection is a subset of + the expected collection provided. - The expected object - The actual object + + - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Write a description of this constraint to a MessageWriter - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + CollectionTally counts (tallies) the number of + occurences of each object in one or more enumerations. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Construct a CollectionTally object from a comparer and a collection - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Try to remove an object from the tally - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message + The object to remove + True if successful, false if the object was not found - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Try to remove a set of objects from the tally - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure + The objects to remove + True if successful, false if any object was not found - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + The number of objects remaining in the tally - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + ComparisonAdapter class centralizes all comparisons of + values in NUnit, adapting to the use of any provided + IComparer, IComparer<T> or Comparison<T> - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Returns a ComparisonAdapter that wraps an IComparer - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Returns a ComparisonAdapter that wraps an IComparer<T> - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Returns a ComparisonAdapter that wraps a Comparison<T> - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Compares two objects - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Gets the default ComparisonAdapter, which wraps an + NUnitComparer object. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Construct a ComparisonAdapter for an IComparer - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Compares two objects - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure + + + - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Construct a default ComparisonAdapter - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + ComparisonAdapter<T> extends ComparisonAdapter and + allows use of an IComparer<T> or Comparison<T> + to actually perform the comparison. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Construct a ComparisonAdapter for an IComparer<T> - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Compare a Type T to an object - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Construct a ComparisonAdapter for a Comparison<T> - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Compare a Type T to an object - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Abstract base class for constraints that compare values to + determine if one is greater than, equal to or less than + the other. This class supplies the Using modifiers. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + ComparisonAdapter to be used in making the comparison - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Modifies the constraint to use an IComparer and returns self - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Modifies the constraint to use an IComparer<T> and returns self - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Modifies the constraint to use a Comparison<T> and returns self - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Delegate used to delay evaluation of the actual value + to be used in evaluating a constraint - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + ConstraintBuilder maintains the stacks that are used in + processing a ConstraintExpression. An OperatorStack + is used to hold operators that are waiting for their + operands to be reognized. a ConstraintStack holds + input constraints as well as the results of each + operator applied. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Appends the specified operator to the expression by first + reducing the operator stack and then pushing the new + operator on the stack. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + The operator to push. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Appends the specified constraint to the expresson by pushing + it on the constraint stack. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The constraint to push. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Sets the top operator right context. - The first value, expected to be less - The second value, expected to be greater + The right context. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Reduces the operator stack until the topmost item + precedence is greater than or equal to the target precedence. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + The target precedence. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Resolves this instance, returning a Constraint. If the builder + is not currently in a resolvable state, an exception is thrown. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The resolved constraint - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets a value indicating whether this instance is resolvable. - The first value, expected to be less - The second value, expected to be greater + + true if this instance is resolvable; otherwise, false. + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + OperatorStack is a type-safe stack for holding ConstraintOperators - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The builder. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Pushes the specified operator onto the stack. - The first value, expected to be less - The second value, expected to be greater + The op. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Pops the topmost operator from the stack. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets a value indicating whether this is empty. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + true if empty; otherwise, false. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the topmost operator without modifying the stack. - The first value, expected to be less - The second value, expected to be greater + The top. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + ConstraintStack is a type-safe stack for holding Constraints - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + The builder. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Pushes the specified constraint. As a side effect, + the constraint's builder field is set to the + ConstraintBuilder owning this stack. - The first value, expected to be less - The second value, expected to be greater + The constraint. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Pops this topmost constrait from the stack. + As a side effect, the constraint's builder + field is set to null. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message + - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets a value indicating whether this is empty. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure + true if empty; otherwise, false. - + - Verifies that the first value is less than the second - value. If it is not, then an - is thrown. + Gets the topmost constraint without modifying the stack. - The first value, expected to be less - The second value, expected to be greater + The topmost constraint - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + ConstraintExpression represents a compound constraint in the + process of being constructed from a series of syntactic elements. + + Individual elements are appended to the expression as they are + reognized. Once an actual Constraint is appended, the expression + returns a resolvable Constraint. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + ConstraintExpressionBase is the abstract base class for the + ConstraintExpression class, which represents a + compound constraint in the process of being constructed + from a series of syntactic elements. + + NOTE: ConstraintExpressionBase is separate because the + ConstraintExpression class was generated in earlier + versions of NUnit. The two classes may be combined + in a future version. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + The ConstraintBuilder holding the elements recognized so far - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure + The builder. - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a string representation of the expression as it + currently stands. This should only be used for testing, + since it has the side-effect of resolving the expression. - The first value, expected to be greater - The second value, expected to be less + - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Appends an operator to the expression and returns the + resulting expression itself. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Appends a self-resolving operator to the expression and + returns a new ResolvableConstraintExpression. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Appends a constraint to the expression and returns that + constraint, which is associated with the current state + of the expression being built. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Initializes a new instance of the class. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure + The builder. - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding only if a specified number of them succeed. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests two items for equality - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests that two references are the same object - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is greater than the suppled argument - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is less than the suppled argument - The first value, expected to be greater - The second value, expected to be less - The message to display in case of failure - + - Verifies that the first value is greater than or equal tothe second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The first value, expected to be greater - The second value, expected to be less - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - Array of objects to be used in formatting the message - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value matches the regular expression supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - The message to display in case of failure - + - Verifies that the first value is less than or equal to the second - value. If it is not, then an - is thrown. + Returns a constraint that succeeds if the actual + value matches the regular expression supplied as an argument. - The first value, expected to be less - The second value, expected to be greater - + - Asserts that an object is contained in a list. + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. - The expected object - The list to be examined - The message to display in case of failure - Array of objects to be used in formatting the message - + - Asserts that an object is contained in a list. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - The expected object - The list to be examined - The message to display in case of failure - + - Asserts that an object is contained in a list. + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. - The expected object - The list to be examined - + - Gets the number of assertions executed so far and - resets the counter to zero. + Returns a constraint that tests whether the actual value falls + within a specified range. - + - AssertionHelper is an optional base class for user tests, - allowing the use of shorter names for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. + Returns a ConstraintExpression that negates any + following constraint. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That + Returns a ConstraintExpression that negates any + following constraint. - A Constraint to be applied - The actual value to test - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. Works - identically to Assert.That + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. - A Constraint to be applied - The actual value to test - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an assertion exception on failure. + With is currently a NOP - reserved for future use. - A Constraint to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to Assert.That. - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message + Returns a constraint that tests for null + - + - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically to Assert.That. + Returns a constraint that tests for True - The evaluated condition - The message to display if the condition is false - + - Asserts that a condition is true. If the condition is false the method throws - an . Works Identically Assert.That. + Returns a constraint that tests for False - The evaluated condition - + - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. + Returns a constraint that tests for a positive value - A TestDelegate to be executed - A ThrowsConstraint used in the test - + - Returns a ListMapper based on a collection. + Returns a constraint that tests for a negative value - The original collection - - + - Provides static methods to express the assumptions - that must be met for a test to give a meaningful - result. If an assumption is not met, the test - should produce an inconclusive result. + Returns a constraint that tests for NaN - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Returns a constraint that tests for empty - - - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Returns a constraint that tests whether a collection + contains all unique items. - - - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Returns a constraint that tests whether an object graph is serializable in binary format. - A Constraint expression to be applied - The actual value to test - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Returns a constraint that tests whether an object graph is serializable in xml format. - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Returns a constraint that tests whether a collection is ordered - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + ContainsConstraint tests a whether a string contains a substring + or a collection contains an object. It postpones the decision of + which test to use until the type of the actual argument is known. + This allows testing whether a string is contained in a collection + or as a substring of another string using the same syntax. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Initializes a new instance of the class. - A Constraint expression to be applied - An ActualValueDelegate returning the value to be tested - The message that will be displayed on failure + The expected. - + - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Test whether the constraint is satisfied by a given value - An ActualValueDelegate returning the value to be tested - A Constraint expression to be applied - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Write the constraint description to a MessageWriter - A Constraint expression to be applied - The actual value to test + The writer on which the description is displayed - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Flag the constraint to use the supplied IComparer object. - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure + The IComparer object to use. + Self. - + - Apply a constraint to a referenced value, succeeding if the constraint - is satisfied and throwing an InconclusiveException on failure. + Flag the constraint to use the supplied IComparer object. - A Constraint expression to be applied - The actual value to test - The message that will be displayed on failure - Arguments to be used in formatting the message + The IComparer object to use. + Self. - + - Asserts that a condition is true. If the condition is false the method throws - an . - - The evaluated condition - The message to display if the condition is false - Arguments to be used in formatting the message + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. - + - Asserts that a condition is true. If the condition is false the method throws - an . + Flag the constraint to use the supplied IEqualityComparer object. - The evaluated condition - The message to display if the condition is false + The IComparer object to use. + Self. - + - Asserts that a condition is true. If the condition is false the - method throws an . + Flag the constraint to use the supplied IEqualityComparer object. - The evaluated condition + The IComparer object to use. + Self. - + - Asserts that the code represented by a delegate throws an exception - that satisfies the constraint provided. + Flag the constraint to ignore case and return self. - A TestDelegate to be executed - A ThrowsConstraint used in the test - + - A set of Assert methods operationg on one or more collections + Applies a delay to the match so that a match can be evaluated in the future. - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Creates a new DelayedConstraint - - + The inner constraint two decorate + The time interval after which the match is performed + If the value of is less than 0 - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Creates a new DelayedConstraint - - + The inner constraint two decorate + The time interval after which the match is performed + The time interval used for polling + If the value of is less than 0 - + - Asserts that all items contained in collection are of the type specified by expectedType. + Test whether the constraint is satisfied by a given value - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of + The value to be tested + True for if the base constraint fails, false if it succeeds - + - Asserts that all items contained in collection are of the type specified by expectedType. + Test whether the constraint is satisfied by a delegate - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure + The delegate whose value is to be tested + True for if the base constraint fails, false if it succeeds - + - Asserts that all items contained in collection are of the type specified by expectedType. + Test whether the constraint is satisfied by a given reference. + Overridden to wait for the specified delay period before + calling the base constraint with the dereferenced value. - IEnumerable containing objects to be considered - System.Type that all objects in collection must be instances of - The message that will be displayed on failure - Arguments to be used in formatting the message + A reference to the value to be tested + True for success, false for failure - + - Asserts that all items contained in collection are not equal to null. + Write the constraint description to a MessageWriter - IEnumerable containing objects to be considered + The writer on which the description is displayed - + - Asserts that all items contained in collection are not equal to null. + Write the actual value for a failing constraint test to a MessageWriter. - IEnumerable containing objects to be considered - The message that will be displayed on failure + The writer on which the actual value is displayed - + - Asserts that all items contained in collection are not equal to null. + Returns the string representation of the constraint. - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Ensures that every object contained in collection exists within the collection - once and only once. + EmptyCollectionConstraint tests whether a collection is empty. - IEnumerable of objects to be considered - + - Ensures that every object contained in collection exists within the collection - once and only once. + Check that the collection is empty - IEnumerable of objects to be considered - The message that will be displayed on failure + + - + - Ensures that every object contained in collection exists within the collection - once and only once. + Write the constraint description to a MessageWriter - IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + EmptyConstraint tests a whether a string or collection is empty, + postponing the decision about which test is applied until the + type of the actual argument is known. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + Test whether the constraint is satisfied by a given value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable + The value to be tested + True for success, false for failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + Write the constraint description to a MessageWriter - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure + The writer on which the description is displayed - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + EmptyDirectoryConstraint is used to test that a directory is empty - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. + Test whether the constraint is satisfied by a given value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that expected and actual are exactly equal. The collections must have the same count, - and contain the exact same objects in the same order. - If comparer is not null then it will be used to compare the objects. + Write the constraint description to a MessageWriter - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered + The writer on which the actual value is displayed - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + EmptyStringConstraint tests whether a string is empty. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - + - Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + Test whether the constraint is satisfied by a given value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Asserts that expected and actual are not exactly equal. + Write the constraint description to a MessageWriter - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered + The writer on which the description is displayed - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + EndsWithConstraint can test whether a string ends + with an expected substring. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - + - Asserts that expected and actual are not exactly equal. + StringConstraint is the abstract base for constraints + that operate on strings. It supports the IgnoreCase + modifier for string operations. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + The expected value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - + - Asserts that expected and actual are not exactly equal. + Indicates whether tests should be case-insensitive - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that expected and actual are not exactly equal. - If comparer is not null then it will be used to compare the objects. + Constructs a StringConstraint given an expected value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The IComparer to use in comparing objects from each IEnumerable - The message that will be displayed on failure - Arguments to be used in formatting the message + The expected value - + - Asserts that expected and actual are not equivalent. + Test whether the constraint is satisfied by a given value - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered + The value to be tested + True for success, false for failure - + - Asserts that expected and actual are not equivalent. + Test whether the constraint is satisfied by a given string - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure + The string to be tested + True for success, false for failure - + - Asserts that expected and actual are not equivalent. + Modify the constraint to ignore case in matching. - The first IEnumerable of objects to be considered - The second IEnumerable of objects to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that collection contains actual as an item. + Initializes a new instance of the class. - IEnumerable of objects to be considered - Object to be found within collection + The expected string - + - Asserts that collection contains actual as an item. + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure + + - + - Asserts that collection contains actual as an item. + Write the constraint description to a MessageWriter - IEnumerable of objects to be considered - Object to be found within collection - The message that will be displayed on failure - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Asserts that collection does not contain actual as an item. + EqualConstraint is able to compare an actual value with the + expected value provided in its constructor. Two objects are + considered equal if both are null, or if both have the same + value. NUnit has special semantics for some object types. - IEnumerable of objects to be considered - Object that cannot exist within collection - + - Asserts that collection does not contain actual as an item. + If true, strings in error messages will be clipped - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure - + - Asserts that collection does not contain actual as an item. + NUnitEqualityComparer used to test equality. - IEnumerable of objects to be considered - Object that cannot exist within collection - The message that will be displayed on failure - Arguments to be used in formatting the message - + - Asserts that superset is not a subject of subset. + Initializes a new instance of the class. - The IEnumerable superset to be considered - The IEnumerable subset to be considered + The expected value. - + - Asserts that superset is not a subject of subset. + Flag the constraint to use a tolerance when determining equality. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure + Tolerance value to be used + Self. - + - Asserts that superset is not a subject of subset. + Flag the constraint to use the supplied IComparer object. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The IComparer object to use. + Self. - + - Asserts that superset is a subset of subset. + Flag the constraint to use the supplied IComparer object. - The IEnumerable superset to be considered - The IEnumerable subset to be considered + The IComparer object to use. + Self. - + - Asserts that superset is a subset of subset. + Flag the constraint to use the supplied IComparer object. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure + The IComparer object to use. + Self. - + - Asserts that superset is a subset of subset. + Flag the constraint to use the supplied Comparison object. - The IEnumerable superset to be considered - The IEnumerable subset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message + The IComparer object to use. + Self. - + - Assert that an array, list or other collection is empty + Flag the constraint to use the supplied IEqualityComparer object. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message + The IComparer object to use. + Self. - + - Assert that an array, list or other collection is empty + Flag the constraint to use the supplied IEqualityComparer object. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure + The IComparer object to use. + Self. - + - Assert that an array,list or other collection is empty + Test whether the constraint is satisfied by a given value - An array, list or other collection implementing IEnumerable + The value to be tested + True for success, false for failure - + - Assert that an array, list or other collection is empty + Write a failure message. Overridden to provide custom + failure messages for EqualConstraint. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message + The MessageWriter to write to - + - Assert that an array, list or other collection is empty + Write description of this constraint - An array, list or other collection implementing IEnumerable - The message to be displayed on failure + The MessageWriter to write to - + - Assert that an array,list or other collection is empty + Display the failure information for two collections that did not match. - An array, list or other collection implementing IEnumerable + The MessageWriter on which to display + The expected collection. + The actual collection + The depth of this failure in a set of nested collections - + - Assert that an array, list or other collection is ordered + Displays a single line showing the types and sizes of the expected + and actual enumerations, collections or arrays. If both are identical, + the value is only shown once. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure - Arguments to be used in formatting the message + The MessageWriter on which to display + The expected collection or array + The actual collection or array + The indentation level for the message line - + - Assert that an array, list or other collection is ordered + Displays a single line showing the point in the expected and actual + arrays at which the comparison failed. If the arrays have different + structures or dimensions, both values are shown. - An array, list or other collection implementing IEnumerable - The message to be displayed on failure + The MessageWriter on which to display + The expected array + The actual array + Index of the failure point in the underlying collections + The indentation level for the message line - + - Assert that an array, list or other collection is ordered + Display the failure information for two IEnumerables that did not match. - An array, list or other collection implementing IEnumerable + The MessageWriter on which to display + The expected enumeration. + The actual enumeration + The depth of this failure in a set of nested collections - + - Assert that an array, list or other collection is ordered + Flag the constraint to ignore case and return self. - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure - Arguments to be used in formatting the message - + - Assert that an array, list or other collection is ordered + Flag the constraint to suppress string clipping + and return self. - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - The message to be displayed on failure - + - Assert that an array, list or other collection is ordered + Flag the constraint to compare arrays as collections + and return self. - An array, list or other collection implementing IEnumerable - A custom comparer to perform the comparisons - + - Static helper class used in the constraint-based syntax + Switches the .Within() modifier to interpret its tolerance as + a distance in representable values (see remarks). + Self. + + Ulp stands for "unit in the last place" and describes the minimum + amount a given value can change. For any integers, an ulp is 1 whole + digit. For floating point values, the accuracy of which is better + for smaller numbers and worse for larger numbers, an ulp depends + on the size of the number. Using ulps for comparison of floating + point results instead of fixed tolerances is safer because it will + automatically compensate for the added inaccuracy of larger numbers. + - + - Creates a new SubstringConstraint + Switches the .Within() modifier to interpret its tolerance as + a percentage that the actual values is allowed to deviate from + the expected value. - The value of the substring - A SubstringConstraint + Self - + - Creates a new CollectionContainsConstraint. + Causes the tolerance to be interpreted as a TimeSpan in days. - The item that should be found. - A new CollectionContainsConstraint + Self - + - Summary description for DirectoryAssert + Causes the tolerance to be interpreted as a TimeSpan in hours. + Self - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Causes the tolerance to be interpreted as a TimeSpan in minutes. - - + Self - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Causes the tolerance to be interpreted as a TimeSpan in seconds. - - + Self - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + Causes the tolerance to be interpreted as a TimeSpan in milliseconds. + Self - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Causes the tolerance to be interpreted as a TimeSpan in clock ticks. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message + Self - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + EqualityAdapter class handles all equality comparisons + that use an IEqualityComparer, IEqualityComparer<T> + or a ComparisonAdapter. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Compares two objects, returning true if they are equal - A directory containing the value that is expected - A directory containing the actual value - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Returns true if the two objects can be compared by this adapter. + The base adapter cannot handle IEnumerables except for strings. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Returns an EqualityAdapter that wraps an IComparer. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are not equal - + - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Returns an EqualityAdapter that wraps an IEqualityComparer. - A directory path string containing the value that is expected - A directory path string containing the actual value - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Returns an EqualityAdapter that wraps an IEqualityComparer<T>. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - Arguments to be used in formatting the message - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Returns an EqualityAdapter that wraps an IComparer<T>. - A directory containing the value that is expected - A directory containing the actual value - The message to display if directories are not equal - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Returns an EqualityAdapter that wraps a Comparison<T>. - A directory containing the value that is expected - A directory containing the actual value - + - Asserts that two directories are not equal. If they are equal - an is thrown. + EqualityAdapter that wraps an IComparer. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal - Arguments to be used in formatting the message - + - Asserts that two directories are not equal. If they are equal - an is thrown. + Returns true if the two objects can be compared by this adapter. + Generic adapter requires objects of the specified type. - A directory path string containing the value that is expected - A directory path string containing the actual value - The message to display if directories are equal - + - Asserts that two directories are not equal. If they are equal - an is thrown. + EqualityAdapter that wraps an IComparer. - A directory path string containing the value that is expected - A directory path string containing the actual value - + - Asserts that the directory is empty. If it is not empty - an is thrown. + EqualityAdapterList represents a list of EqualityAdapters + in a common class across platforms. - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - + - Asserts that the directory is empty. If it is not empty - an is thrown. + ExactCountConstraint applies another constraint to each + item in a collection, succeeding only if a specified + number of items succeed. - A directory to search - The message to display if directories are not equal - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Construct an ExactCountConstraint on top of an existing constraint - A directory to search + + - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Apply the item constraint to each item in the collection, + succeeding only if the expected number of items pass. - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message + + - + - Asserts that the directory is empty. If it is not empty - an is thrown. + Write a description of this constraint to a MessageWriter - A directory to search - The message to display if directories are not equal + - + - Asserts that the directory is empty. If it is not empty - an is thrown. + ExactTypeConstraint is used to test that an object + is of the exact type provided in the constructor - A directory to search - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Construct an ExactTypeConstraint for a given Type - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message + The expected Type. - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Test that an object is of the exact type specified - A directory to search - The message to display if directories are not equal + The actual value. + True if the tested object is of the exact type provided, otherwise false. - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Write the description of this constraint to a MessageWriter - A directory to search + The MessageWriter to use - + - Asserts that the directory is not empty. If it is empty - an is thrown. + ExceptionTypeConstraint is a special version of ExactTypeConstraint + used to provided detailed info about the exception thrown in + an error message. - A directory to search - The message to display if directories are not equal - Arguments to be used in formatting the message - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Constructs an ExceptionTypeConstraint - A directory to search - The message to display if directories are not equal - + - Asserts that the directory is not empty. If it is empty - an is thrown. + Write the actual value for a failing constraint test to a + MessageWriter. Overriden to write additional information + in the case of an Exception. - A directory to search + The MessageWriter to use - + - Asserts that path contains actual as a subdirectory or - an is thrown. + FailurePoint class represents one point of failure + in an equality test. - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - + - Asserts that path contains actual as a subdirectory or - an is thrown. + The location of the failure - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - + - Asserts that path contains actual as a subdirectory or - an is thrown. + The expected value - A directory to search - sub-directory asserted to exist under directory - + - Asserts that path contains actual as a subdirectory or - an is thrown. + The actual value - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Indicates whether the expected value is valid + + + + + Indicates whether the actual value is valid + + + + + FailurePointList represents a set of FailurePoints + in a cross-platform way. + + + + + FalseConstraint tests that the actual value is false + + + + + Initializes a new instance of the class. + + + + Helper routines for working with floating point numbers + + + The floating point comparison code is based on this excellent article: + http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm + + + "ULP" means Unit in the Last Place and in the context of this library refers to + the distance between two adjacent floating point numbers. IEEE floating point + numbers can only represent a finite subset of natural numbers, with greater + accuracy for smaller numbers and lower accuracy for very large numbers. + + + If a comparison is allowed "2 ulps" of deviation, that means the values are + allowed to deviate by up to 2 adjacent floating point values, which might be + as low as 0.0000001 for small numbers or as high as 10.0 for large numbers. + + + + + Compares two floating point values for equality + First floating point value to be compared + Second floating point value t be compared + + Maximum number of representable floating point values that are allowed to + be between the left and the right floating point values + + True if both numbers are equal or close to being equal + + + Floating point values can only represent a finite subset of natural numbers. + For example, the values 2.00000000 and 2.00000024 can be stored in a float, + but nothing inbetween them. + + + This comparison will count how many possible floating point values are between + the left and the right number. If the number of possible values between both + numbers is less than or equal to maxUlps, then the numbers are considered as + being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + Compares two double precision floating point values for equality + First double precision floating point value to be compared + Second double precision floating point value t be compared + + Maximum number of representable double precision floating point values that are + allowed to be between the left and the right double precision floating point values + + True if both numbers are equal or close to being equal + + + Double precision floating point values can only represent a limited series of + natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004 + can be stored in a double, but nothing inbetween them. + + + This comparison will count how many possible double precision floating point + values are between the left and the right number. If the number of possible + values between both numbers is less than or equal to maxUlps, then the numbers + are considered as being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + + Reinterprets the memory contents of a floating point value as an integer value + + + Floating point value whose memory contents to reinterpret + + + The memory contents of the floating point value interpreted as an integer + + + + + Reinterprets the memory contents of a double precision floating point + value as an integer value + + + Double precision floating point value whose memory contents to reinterpret + + + The memory contents of the double precision floating point value + interpreted as an integer + + + + + Reinterprets the memory contents of an integer as a floating point value + + Integer value whose memory contents to reinterpret + + The memory contents of the integer value interpreted as a floating point value + + + + + Reinterprets the memory contents of an integer value as a double precision + floating point value + + Integer whose memory contents to reinterpret + + The memory contents of the integer interpreted as a double precision + floating point value + + + + Union of a floating point variable and an integer + + + The union's value as a floating point variable + + + The union's value as an integer + + + The union's value as an unsigned integer + + + Union of a double precision floating point variable and a long + + + The union's value as a double precision floating point variable + + + The union's value as a long + + + The union's value as an unsigned long + + + + Tests whether a value is greater than the value supplied to its constructor + + + + + The value against which a comparison is to be made + + + + + Initializes a new instance of the class. + + The expected value. + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Tests whether a value is greater than or equal to the value supplied to its constructor + + + + + The value against which a comparison is to be made - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - + - Asserts that path contains actual as a subdirectory or - an is thrown. + Initializes a new instance of the class. - A directory to search - sub-directory asserted to exist under directory + The expected value. - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Write the constraint description to a MessageWriter - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message + The writer on which the description is displayed - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Test whether the constraint is satisfied by a given value - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + The value to be tested + True for success, false for failure - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + InstanceOfTypeConstraint is used to test that an object + is of the same type provided or derived from it. - A directory to search - sub-directory asserted to exist under directory - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Construct an InstanceOfTypeConstraint for the type provided - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path - Arguments to be used in formatting the message + The expected Type - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Test whether an object is of the specified type or a derived type - A directory to search - sub-directory asserted to exist under directory - The message to display if directory is not within the path + The object to be tested + True if the object is of the provided type or derives from it, otherwise false. - + - Asserts that path does not contain actual as a subdirectory or - an is thrown. + Write a description of this constraint to a MessageWriter - A directory to search - sub-directory asserted to exist under directory + The MessageWriter to use - + - Summary description for FileAssert. + Tests whether a value is less than the value supplied to its constructor - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + The value against which a comparison is to be made - - - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + Initializes a new instance of the class. - - + The expected value. - + - We don't actually want any instances of this object, but some people - like to inherit from it to add other static methods. Hence, the - protected constructor disallows any instances of this object. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Test whether the constraint is satisfied by a given value - The expected Stream - The actual Stream - The message to display if Streams are not equal - Arguments to be used in formatting the message + The value to be tested + True for success, false for failure - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Tests whether a value is less than or equal to the value supplied to its constructor - The expected Stream - The actual Stream - The message to display if objects are not equal - + - Verifies that two Streams are equal. Two Streams are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + The value against which a comparison is to be made - The expected Stream - The actual Stream - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Initializes a new instance of the class. - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message + The expected value. - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Write the constraint description to a MessageWriter - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal + The writer on which the description is displayed - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Test whether the constraint is satisfied by a given value - A file containing the value that is expected - A file containing the actual value + The value to be tested + True for success, false for failure - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Static methods used in creating messages - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Static string used when strings are clipped - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal - + - Verifies that two files are equal. Two files are considered - equal if both are null, or if both have the same value byte for byte. - If they are not equal an is thrown. + Returns the representation of a type as used in NUnitLite. + This is the same as Type.ToString() except for arrays, + which are displayed with their declared sizes. - The path to a file containing the value that is expected - The path to a file containing the actual value + + - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + Converts any control characters in a string + to their escaped representation. - The expected Stream - The actual Stream - The message to be displayed when the two Stream are the same. - Arguments to be used in formatting the message + The string to be converted + The converted string - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + Return the a string representation for a set of indices into an array - The expected Stream - The actual Stream - The message to be displayed when the Streams are the same. + Array of indices for which a string is needed - + - Asserts that two Streams are not equal. If they are equal - an is thrown. + Get an array of indices representing the point in a enumerable, + collection or array corresponding to a single int index into the + collection. - The expected Stream - The actual Stream + The collection to which the indices apply + Index in the collection + Array of indices - + - Asserts that two files are not equal. If they are equal - an is thrown. + Clip a string to a given length, starting at a particular offset, returning the clipped + string with ellipses representing the removed parts - A file containing the value that is expected - A file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message + The string to be clipped + The maximum permitted length of the result string + The point at which to start clipping + The clipped string - + - Asserts that two files are not equal. If they are equal - an is thrown. + Clip the expected and actual strings in a coordinated fashion, + so that they may be displayed together. - A file containing the value that is expected - A file containing the actual value - The message to display if objects are not equal + + + + - + - Asserts that two files are not equal. If they are equal - an is thrown. + Shows the position two strings start to differ. Comparison + starts at the start index. - A file containing the value that is expected - A file containing the actual value + The expected string + The actual string + The index in the strings at which comparison should start + Boolean indicating whether case should be ignored + -1 if no mismatch found, or the index where mismatch found - + - Asserts that two files are not equal. If they are equal - an is thrown. + NaNConstraint tests that the actual value is a double or float NaN - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if Streams are not equal - Arguments to be used in formatting the message - + - Asserts that two files are not equal. If they are equal - an is thrown. + Test that the actual value is an NaN - The path to a file containing the value that is expected - The path to a file containing the actual value - The message to display if objects are not equal + + - + - Asserts that two files are not equal. If they are equal - an is thrown. + Write the constraint description to a specified writer - The path to a file containing the value that is expected - The path to a file containing the actual value + - + - GlobalSettings is a place for setting default values used - by the framework in performing asserts. + NoItemConstraint applies another constraint to each + item in a collection, failing if any of them succeeds. - + - Default tolerance for floating point equality + Construct a NoItemConstraint on top of an existing constraint + - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Apply the item constraint to each item in the collection, + failing if any item fails. + + - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. + Write a description of this constraint to a MessageWriter + - + - Returns a new PropertyConstraintExpression, which will either - test for the existence of the named property on the object - being tested or apply any following constraint to that property. + NotConstraint negates the effect of some other constraint - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Initializes a new instance of the class. + The base constraint to be negated. - + - Returns a new AttributeConstraint checking for the - presence of a particular attribute on an object. + Test whether the constraint is satisfied by a given value + The value to be tested + True for if the base constraint fails, false if it succeeds - + - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Returns a ConstraintExpression that negates any - following constraint. + Write the actual value for a failing constraint test to a MessageWriter. + The writer on which the actual value is displayed - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + NullConstraint tests that the actual value is null - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if at least one of them succeeds. + Initializes a new instance of the class. - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them fail. + NullEmptyStringConstraint tests whether a string is either null or empty. - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Length property of the object being tested. + Constructs a new NullOrEmptyStringConstraint - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Count property of the object being tested. + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - Returns a new ConstraintExpression, which will apply the following - constraint to the Message property of the object being tested. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Returns a new ConstraintExpression, which will apply the following - constraint to the InnerException property of the object being tested. + The Numerics class contains common operations on numeric values. - + - Interface implemented by a user fixture in order to - validate any expected exceptions. It is only called - for test methods marked with the ExpectedException - attribute. + Checks the type of the object, returning true if + the object is a numeric type. + The object to check + true if the object is a numeric type - + - Method to handle an expected exception + Checks the type of the object, returning true if + the object is a floating point numeric type. - The exception to be handled + The object to check + true if the object is a floating point numeric type - + - Helper class with properties and methods that supply - a number of constraints used in Asserts. + Checks the type of the object, returning true if + the object is a fixed point numeric type. + The object to check + true if the object is a fixed point numeric type - + - Returns a constraint that tests two items for equality + Test two numeric values for equality, performing the usual numeric + conversions and using a provided or default tolerance. If the tolerance + provided is Empty, this method may set it to a default tolerance. + The expected value + The actual value + A reference to the tolerance in effect + True if the values are equal - + - Returns a constraint that tests that two references are the same object + Compare two numeric values, performing the usual numeric conversions. + The expected value + The actual value + The relationship of the values to each other - + - Returns a constraint that tests whether the - actual value is greater than the suppled argument + NUnitComparer encapsulates NUnit's default behavior + in comparing two objects. - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Compares two objects + + + - + - Returns a constraint that tests whether the - actual value is greater than or equal to the suppled argument + Returns the default NUnitComparer. - + - Returns a constraint that tests whether the - actual value is less than the suppled argument + Generic version of NUnitComparer + - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + Compare two objects of the same type - + - Returns a constraint that tests whether the - actual value is less than or equal to the suppled argument + NUnitEqualityComparer encapsulates NUnit's handling of + equality tests between objects. - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + - + - Returns a constraint that tests whether the actual - value is of the exact type supplied as an argument. + Compares two objects for equality within a tolerance + The first object to compare + The second object to compare + The tolerance to use in the comparison + - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + If true, all string comparisons will ignore case - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + If true, arrays will be treated as collections, allowing + those of different dimensions to be compared - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + Comparison objects used in comparisons for some constraints. - + - Returns a constraint that tests whether the actual value - is of the type supplied as an argument or a derived type. + List of points at which a failure occured. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + RecursionDetector used to check for recursion when + evaluating self-referencing enumerables. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Compares two objects for equality within a tolerance, setting + the tolerance to the actual tolerance used if an empty + tolerance is supplied. - + - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + Helper method to compare two arrays - - - Returns a constraint that tests whether the actual value - is assignable from the type supplied as an argument. + + + Method to compare two DirectoryInfo objects + first directory to compare + second directory to compare + true if equivalent, false if not - + - Returns a constraint that tests whether the actual value - is a collection containing the same elements as the - collection supplied as an argument. + Returns the default NUnitEqualityComparer - + - Returns a constraint that tests whether the actual value - is a subset of the collection supplied as an argument. + Gets and sets a flag indicating whether case should + be ignored in determining equality. - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Gets and sets a flag indicating that arrays should be + compared as collections, without regard to their shape. - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Gets the list of external comparers to be used to + test for equality. They are applied to members of + collections, in place of NUnit's own logic. - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Gets the list of failure points for the last Match performed. + The list consists of objects to be interpreted by the caller. + This generally means that the caller may only make use of + objects it has placed on the list at a particular depthy. - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + RecursionDetector detects when a comparison + between two enumerables has reached a point + where the same objects that were previously + compared are again being compared. This allows + the caller to stop the comparison if desired. - + - Returns a constraint that tests whether the path provided - is the same as an expected path after canonicalization. + Check whether two objects have previously + been compared, returning true if they have. + The two objects are remembered, so that a + second call will always return true. - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + OrConstraint succeeds if either member succeeds - + - Returns a constraint that tests whether the path provided - is the same path or under an expected path after canonicalization. + Create an OrConstraint from two other constraints + The first constraint + The second constraint - + - Returns a constraint that tests whether the actual value falls - within a specified range. + Apply the member constraints to an actual value, succeeding + succeeding as soon as one of them succeeds. + The actual value + True if either constraint succeeded - + - Returns a ConstraintExpression that negates any - following constraint. + Write a description for this contraint to a MessageWriter + The MessageWriter to receive the description - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + PathConstraint serves as the abstract base of constraints + that operate on paths and provides several helper methods. - + - Returns a constraint that tests for null + The expected path used in the constraint - + - Returns a constraint that tests for True + Flag indicating whether a caseInsensitive comparison should be made - + - Returns a constraint that tests for False + Construct a PathConstraint for a give expected path + The expected path - + - Returns a constraint that tests for a positive value + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - Returns a constraint that tests for a negative value + Returns true if the expected path and actual path match - + - Returns a constraint that tests for NaN + Returns the string representation of this constraint - + - Returns a constraint that tests for empty + Transform the provided path to its canonical form so that it + may be more easily be compared with other paths. + The original path + The path in canonical form - + - Returns a constraint that tests whether a collection - contains all unique items. + Test whether one path in canonical form is under another. + The first path - supposed to be the parent path + The second path - supposed to be the child path + Indicates whether case should be ignored + - + - Returns a constraint that tests whether an object graph is serializable in binary format. + Modifies the current instance to be case-insensitve + and returns it. - + - Returns a constraint that tests whether an object graph is serializable in xml format. + Modifies the current instance to be case-sensitve + and returns it. - + - Returns a constraint that tests whether a collection is ordered + Predicate constraint wraps a Predicate in a constraint, + returning success if the predicate is true. - + - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. + Construct a PredicateConstraint from a predicate - + - The List class is a helper class with properties and methods - that supply a number of constraints used with lists and collections. + Determines whether the predicate succeeds when applied + to the actual value. - + - List.Map returns a ListMapper, which can be used to map - the original collection to another collection. + Writes the description to a MessageWriter - - - + - ListMapper is used to transform a collection used as an actual argument - producing another collection to be used in the assertion. + PropertyConstraint extracts a named property and uses + its value as the actual value for a chained constraint. - + - Construct a ListMapper based on a collection + Initializes a new instance of the class. - The collection to be transformed + The name. + The constraint to apply to the property. - + - Produces a collection containing all the values of a property + Test whether the constraint is satisfied by a given value - The collection of property values - + The value to be tested + True for success, false for failure - + - Randomizer returns a set of random values in a repeatable - way, to allow re-running of tests if necessary. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Get a randomizer for a particular member, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + The writer on which the actual value is displayed - + - Get a randomizer for a particular parameter, returning - one that has already been created if it exists. - This ensures that the same values are generated - each time the tests are reloaded. + Returns the string representation of the constraint. + - + - Construct a randomizer using a random seed + PropertyExistsConstraint tests that a named property + exists on the object provided through Match. + + Originally, PropertyConstraint provided this feature + in addition to making optional tests on the vaue + of the property. The two constraints are now separate. - + - Construct a randomizer using a specified seed + Initializes a new instance of the class. + The name of the property. - + - Return an array of random doubles between 0.0 and 1.0. + Test whether the property exists for a given object - - + The object to be tested + True for success, false for failure - + - Return an array of random doubles with values in a specified range. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Return an array of random ints with values in a specified range. + Write the actual value for a failing constraint test to a + MessageWriter. + The writer on which the actual value is displayed - + - Get a random seed for use in creating a randomizer. + Returns the string representation of the constraint. + - + - The SpecialValue enum is used to represent TestCase arguments - that cannot be used as arguments to an Attribute. + RangeConstraint tests whether two values are within a + specified range. - + - Null represents a null value, which cannot be used as an - argument to an attriute under .NET 1.x + Initializes a new instance of the class. + From. + To. - + - Basic Asserts on strings. + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - The Equals method throws an AssertionException. This is done - to make sure there is no mistake by calling this function. + Write the constraint description to a MessageWriter - - + The writer on which the description is displayed - + - override the default ReferenceEquals to throw an AssertionException. This - implementation makes sure there is no mistake in calling this function - as part of Assert. + RegexConstraint can test whether a string matches + the pattern provided. - - - + - Asserts that a string is found within another string. + Initializes a new instance of the class. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message + The pattern. - + - Asserts that a string is found within another string. + Test whether the constraint is satisfied by a given value - The expected string - The string to be examined - The message to display in case of failure + The value to be tested + True for success, false for failure - + - Asserts that a string is found within another string. + Write the constraint description to a MessageWriter - The expected string - The string to be examined + The writer on which the description is displayed - + - Asserts that a string is not found within another string. + ResolvableConstraintExpression is used to represent a compound + constraint being constructed at a point where the last operator + may either terminate the expression or may have additional + qualifying constraints added to it. + + It is used, for example, for a Property element or for + an Exception element, either of which may be optionally + followed by constraints that apply to the property or + exception. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string is found within another string. + Create a new instance of ResolvableConstraintExpression - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string is found within another string. + Create a new instance of ResolvableConstraintExpression, + passing in a pre-populated ConstraintBuilder. - The expected string - The string to be examined - + - Asserts that a string starts with another string. + Resolve the current expression to a Constraint - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string starts with another string. + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string starts with another string. + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. - The expected string - The string to be examined - + - Asserts that a string does not start with another string. + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string does not start with another string. + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string does not start with another string. + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. - The expected string - The string to be examined - + - Asserts that a string ends with another string. + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string ends with another string. + This operator creates a constraint that is satisfied if the + argument constraint is not satisfied. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string ends with another string. + Appends an And Operator to the expression - The expected string - The string to be examined - + - Asserts that a string does not end with another string. + Appends an Or operator to the expression. - The expected string - The string to be examined - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that a string does not end with another string. + ReusableConstraint wraps a constraint expression after + resolving it so that it can be reused consistently. - The expected string - The string to be examined - The message to display in case of failure - + - Asserts that a string does not end with another string. + Construct a ReusableConstraint from a constraint expression - The expected string - The string to be examined + The expression to be resolved and reused - + - Asserts that two strings are equal, without regard to case. + Converts a constraint to a ReusableConstraint - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message + The constraint to be converted + A ReusableConstraint - + - Asserts that two strings are equal, without regard to case. + Returns the string representation of the constraint. - The expected string - The actual string - The message to display in case of failure + A string representing the constraint - + - Asserts that two strings are equal, without regard to case. + Resolves the ReusableConstraint by returning the constraint + that it originally wrapped. - The expected string - The actual string + A resolved constraint - + - Asserts that two strings are not equal, without regard to case. + SameAsConstraint tests whether an object is identical to + the object passed to its constructor - The expected string - The actual string - The message to display in case of failure - Arguments used in formatting the message - + - Asserts that two strings are Notequal, without regard to case. + Initializes a new instance of the class. - The expected string - The actual string - The message to display in case of failure + The expected object. - + - Asserts that two strings are not equal, without regard to case. + Test whether the constraint is satisfied by a given value - The expected string - The actual string + The value to be tested + True for success, false for failure - + - Asserts that a string matches an expected regular expression pattern. + Write the constraint description to a MessageWriter - The regex pattern to be matched - The actual string - The message to display in case of failure - Arguments used in formatting the message + The writer on which the description is displayed - + - Asserts that a string matches an expected regular expression pattern. + Summary description for SamePathConstraint. - The regex pattern to be matched - The actual string - The message to display in case of failure - + - Asserts that a string matches an expected regular expression pattern. + Initializes a new instance of the class. - The regex pattern to be matched - The actual string + The expected path - + - Asserts that a string does not match an expected regular expression pattern. + Test whether the constraint is satisfied by a given value - The regex pattern to be used - The actual string - The message to display in case of failure - Arguments used in formatting the message + The expected path + The actual path + True for success, false for failure - + - Asserts that a string does not match an expected regular expression pattern. + Write the constraint description to a MessageWriter - The regex pattern to be used - The actual string - The message to display in case of failure + The writer on which the description is displayed - + - Asserts that a string does not match an expected regular expression pattern. + SamePathOrUnderConstraint tests that one path is under another - The regex pattern to be used - The actual string - + - The TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It provides a number of instance modifiers - for use in initializing the test case. - - Note: Instance modifiers are getters that return - the same instance after modifying it's state. + Initializes a new instance of the class. + The expected path - + - The argument list to be provided to the test + Test whether the constraint is satisfied by a given value + The expected path + The actual path + True for success, false for failure - + - The expected result to be returned + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Set to true if this has an expected result + SomeItemsConstraint applies another constraint to each + item in a collection, succeeding if any of them succeeds. - + - The expected exception Type + Construct a SomeItemsConstraint on top of an existing constraint + - + - The FullName of the expected exception + Apply the item constraint to each item in the collection, + succeeding if any item succeeds. + + - + - The name to be used for the test + Write a description of this constraint to a MessageWriter + - + - The description of the test + StartsWithConstraint can test whether a string starts + with an expected substring. - + - A dictionary of properties, used to add information - to tests without requiring the class to change. + Initializes a new instance of the class. + The expected string - + - If true, indicates that the test case is to be ignored + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. + + - + - If true, indicates that the test case is marked explicit + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - The reason for ignoring a test case + SubPathConstraint tests that the actual path is under the expected path - + - Initializes a new instance of the class. + Initializes a new instance of the class. - The arguments. + The expected path - + - Initializes a new instance of the class. + Test whether the constraint is satisfied by a given value - The argument. + The expected path + The actual path + True for success, false for failure - + - Initializes a new instance of the class. + Write the constraint description to a MessageWriter - The first argument. - The second argument. + The writer on which the description is displayed - + - Initializes a new instance of the class. + SubstringConstraint can test whether a string contains + the expected substring. - The first argument. - The second argument. - The third argument. - + - Sets the expected result for the test + Initializes a new instance of the class. - The expected result - A modified TestCaseData + The expected. - + - Sets the expected exception type for the test + Test whether the constraint is satisfied by a given value - Type of the expected exception. - The modified TestCaseData instance + The value to be tested + True for success, false for failure - + - Sets the expected exception type for the test + Write the constraint description to a MessageWriter - FullName of the expected exception. - The modified TestCaseData instance + The writer on which the description is displayed - + - Sets the name of the test case + ThrowsConstraint is used to test the exception thrown by + a delegate by applying a constraint to it. - The modified TestCaseData instance - + - Sets the description for the test case - being constructed. + Initializes a new instance of the class, + using a constraint to be applied to the exception. - The description. - The modified TestCaseData instance. + A constraint to apply to the caught exception. - + - Applies a category to the test + Executes the code of the delegate and captures any exception. + If a non-null base constraint was provided, it applies that + constraint to the exception. - - + A delegate representing the code to be tested + True if an exception is thrown and the constraint succeeds, otherwise false - + - Applies a named property to the test + Converts an ActualValueDelegate to a TestDelegate + before calling the primary overload. - - - - + - Applies a named property to the test + Write the constraint description to a MessageWriter - - - + The writer on which the description is displayed - + - Applies a named property to the test + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. - - - + The writer on which the actual value is displayed - + - Ignores this TestCase. + Returns the string representation of this constraint - - + - Ignores this TestCase, specifying the reason. + Get the actual exception thrown - used by Assert.Throws. - The reason. - - + - Marks this TestCase as Explicit + ThrowsNothingConstraint tests that a delegate does not + throw an exception. - - + - Marks this TestCase as Explicit, specifying the reason. + Test whether the constraint is satisfied by a given value - The reason. - + The value to be tested + True if no exception is thrown, otherwise false - + - Gets the argument list to be provided to the test + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - Gets the expected result + Write the actual value for a failing constraint test to a + MessageWriter. Overridden in ThrowsNothingConstraint to write + information about the exception that was actually caught. + The writer on which the actual value is displayed - + - Returns true if the result has been set + The Tolerance class generalizes the notion of a tolerance + within which an equality test succeeds. Normally, it is + used with numeric types, but it can be used with any + type that supports taking a difference between two + objects and comparing that difference to a value. - + - Gets the expected exception Type + Constructs a linear tolerance of a specdified amount - + - Gets the FullName of the expected exception + Constructs a tolerance given an amount and ToleranceMode - + - Gets the name to be used for the test + Tests that the current Tolerance is linear with a + numeric value, throwing an exception if it is not. - + - Gets the description of the test + Returns an empty Tolerance object, equivalent to + specifying no tolerance. In most cases, it results + in an exact match but for floats and doubles a + default tolerance may be used. - + - Gets a value indicating whether this is ignored. + Returns a zero Tolerance object, equivalent to + specifying an exact match. - true if ignored; otherwise, false. - + - Gets a value indicating whether this is explicit. + Gets the ToleranceMode for the current Tolerance - true if explicit; otherwise, false. - + - Gets the ignore reason. + Gets the value of the current Tolerance instance. - The ignore reason. - + - Gets a list of categories associated with this test. + Returns a new tolerance, using the current amount as a percentage. - + - Gets the property dictionary for this test + Returns a new tolerance, using the current amount in Ulps. - + - Provide the context information of the current test + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of days. - + - Constructs a TestContext using the provided context dictionary + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of hours. - A context dictionary - + - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of minutes. - + - Gets a TestAdapter representing the currently executing test in this context. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of seconds. - + - Gets a ResultAdapter representing the current result for the test - executing in this context. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of milliseconds. - + - Gets the directory containing the current test assembly. + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of clock ticks. - + - Gets the directory to be used for outputing files created - by this test run. + Returns true if the current tolerance is empty. - + - TestAdapter adapts a Test for consumption by - the user test code. + Modes in which the tolerance value for a comparison can be interpreted. - + - Constructs a TestAdapter for this context + The tolerance was created with a value, without specifying + how the value would be used. This is used to prevent setting + the mode more than once and is generally changed to Linear + upon execution of the test. - The context dictionary - + - The name of the test. + The tolerance is used as a numeric range within which + two compared values are considered to be equal. - + - The FullName of the test + Interprets the tolerance as the percentage by which + the two compared values my deviate from each other. - + - The properties of the test. + Compares two values based in their distance in + representable numbers. - + - ResultAdapter adapts a TestResult for consumption by - the user test code. + TrueConstraint tests that the actual value is true - + - Construct a ResultAdapter for a context + Initializes a new instance of the class. - The context holding the result - + - The TestState of current test. This maps to the ResultState - used in nunit.core and is subject to change in the future. + UniqueItemsConstraint tests whether all the items in a + collection are unique. - + - The TestStatus of current test. This enum will be used - in future versions of NUnit and so is to be preferred - to the TestState value. + Check that all items are unique. + + - + - Provides details about a test + Write a description of this constraint to a MessageWriter + - + - Creates an instance of TestDetails + XmlSerializableConstraint tests whether + an object is serializable in XML format. - The fixture that the test is a member of, if available. - The method that implements the test, if available. - The full name of the test. - A string representing the type of test, e.g. "Test Case". - Indicates if the test represents a suite of tests. - + - The fixture that the test is a member of, if available. + Test whether the constraint is satisfied by a given value + The value to be tested + True for success, false for failure - + - The method that implements the test, if available. + Write the constraint description to a MessageWriter + The writer on which the description is displayed - + - The full name of the test. + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + The writer on which the actual value is displayed - + - A string representing the type of test, e.g. "Test Case". + Returns the string representation of this constraint - + - Indicates if the test represents a suite of tests. + Represents a constraint that succeeds if all the + members of a collection match a base constraint. - + - The ResultState enum indicates the result of running a test + Abstract base for operators that indicate how to + apply a constraint to items in a collection. - + - The result is inconclusive + PrefixOperator takes a single constraint and modifies + it's action in some way. - + - The test was not runnable. + The ConstraintOperator class is used internally by a + ConstraintBuilder to represent an operator that + modifies or combines constraints. + + Constraint operators use left and right precedence + values to determine whether the top operator on the + stack should be reduced before pushing a new operator. - + - The test has been skipped. + The precedence value used when the operator + is about to be pushed to the stack. - + - The test has been ignored. + The precedence value used when the operator + is on the top of the stack. - + - The test succeeded + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - The test failed + The syntax element preceding this operator - + - The test encountered an unexpected exception + The syntax element folowing this operator - + - The test was cancelled by the user + The precedence value used when the operator + is about to be pushed to the stack. - + - The TestStatus enum indicates the result of running a test + The precedence value used when the operator + is on the top of the stack. - + - The test was inconclusive + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - The test has skipped + Returns the constraint created by applying this + prefix to another constraint. + + - + - The test succeeded + Constructs a CollectionOperator - + - The test failed + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + they all succeed. - + - Helper class with static methods used to supply constraints - that operate on strings. + Operator that requires both it's arguments to succeed - + - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. + Abstract base class for all binary operators - + - Returns a constraint that fails if the actual - value contains the substring supplied as an argument. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + - + - Returns a constraint that succeeds if the actual - value starts with the substring supplied as an argument. + Abstract method that produces a constraint by applying + the operator to its left and right constraint arguments. - + - Returns a constraint that fails if the actual - value starts with the substring supplied as an argument. + Gets the left precedence of the operator - + - Returns a constraint that succeeds if the actual - value ends with the substring supplied as an argument. + Gets the right precedence of the operator - + - Returns a constraint that fails if the actual - value ends with the substring supplied as an argument. + Construct an AndOperator - + - Returns a constraint that succeeds if the actual - value matches the Regex pattern supplied as an argument. + Apply the operator to produce an AndConstraint - + - Returns a constraint that fails if the actual - value matches the pattern supplied as an argument. + Operator that tests for the presence of a particular attribute + on a type and optionally applies further tests to the attribute. - + - Returns a ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding if all of them succeed. + Abstract base class for operators that are able to reduce to a + constraint whether or not another syntactic element follows. - + - TextMessageWriter writes constraint descriptions and messages - in displayable form as a text stream. It tailors the display - of individual message components to form the standard message - format of NUnit assertion failure messages. + Construct an AttributeOperator for a particular Type + The Type of attribute tested - + - Prefix used for the expected value line of a message + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. - + - Prefix used for the actual value line of a message + Represents a constraint that succeeds if the specified + count of members of a collection match a base constraint. - + - Length of a message prefix + Construct an ExactCountOperator for a specified count + The expected count - + - Construct a TextMessageWriter + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + none of them succeed. - + - Construct a TextMessageWriter, specifying a user message - and optional formatting arguments. + Represents a constraint that succeeds if none of the + members of a collection match a base constraint. - - - + - Method to write single line message with optional args, usually - written to precede the general failure message, at a givel - indentation level. + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + none of them succeed. - The indentation level of the message - The message to be written - Any arguments used in formatting the message - + - Display Expected and Actual lines for a constraint. This - is called by MessageWriter's default implementation of - WriteMessageTo and provides the generic two-line display. + Negates the test of the constraint it wraps. - The constraint that failed - + - Display Expected and Actual lines for given values. This - method may be called by constraints that need more control over - the display of actual and expected values than is provided - by the default implementation. + Constructs a new NotOperator - The expected value - The actual value causing the failure - + - Display Expected and Actual lines for given values, including - a tolerance value on the expected line. + Returns a NotConstraint applied to its argument. - The expected value - The actual value causing the failure - The tolerance within which the test was made - + - Display the expected and actual string values on separate lines. - If the mismatch parameter is >=0, an additional line is displayed - line containing a caret that points to the mismatch point. + Operator that requires at least one of it's arguments to succeed - The expected string value - The actual string value - The point at which the strings don't match or -1 - If true, case is ignored in string comparisons - If true, clip the strings to fit the max line length - + - Writes the text for a connector. + Construct an OrOperator - The connector. - + - Writes the text for a predicate. + Apply the operator to produce an OrConstraint - The predicate. - + - Write the text for a modifier. + Operator used to test for the presence of a named Property + on an object and optionally apply further tests to the + value of that property. - The modifier. - + - Writes the text for an expected value. + Constructs a PropOperator for a particular named property - The expected value. - + - Writes the text for an actual value. + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. - The actual value. + - + - Writes the text for a generalized value. + Gets the name of the property to which the operator applies - The value. - + - Writes the text for a collection value, - starting at a particular point, to a max length + Represents a constraint that succeeds if any of the + members of a collection match a base constraint. - The collection containing elements to write. - The starting point of the elements to write - The maximum number of elements to write - + - Write the generic 'Expected' line for a constraint + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + any of them succeed. - The constraint that failed - + - Write the generic 'Expected' line for a given value + Operator that tests that an exception is thrown and + optionally applies further tests to the exception. - The expected value - + - Write the generic 'Expected' line for a given value - and tolerance. + Construct a ThrowsOperator - The expected value - The tolerance within which the test was made - + - Write the generic 'Actual' line for a constraint + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. - The constraint for which the actual value is to be written - + - Write the generic 'Actual' line for a given value + Represents a constraint that simply wraps the + constraint provided as an argument, without any + further functionality, but which modifes the + order of evaluation because of its precedence. - The actual value causing a failure - + - Gets or sets the maximum line length for this writer + Constructor for the WithOperator - + - Helper class with properties and methods that supply - constraints that operate on exceptions. + Returns a constraint that wraps its argument - + - Creates a constraint specifying the exact type of exception expected + Thrown when an assertion failed. - + + The error message that explains + the reason for the exception + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Creates a constraint specifying the exact type of exception expected + Serialization Constructor - + - Creates a constraint specifying the type of exception expected + Thrown when an assertion failed. - + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Creates a constraint specifying the type of exception expected + Serialization Constructor - + - Creates a constraint specifying an expected exception + Thrown when a test executes inconclusively. - + + The error message that explains + the reason for the exception + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Creates a constraint specifying an exception with a given InnerException + Serialization Constructor - + - Creates a constraint specifying an expected TargetInvocationException + Thrown when an assertion failed. - + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + - Creates a constraint specifying an expected TargetInvocationException + Serialization Constructor - + - Creates a constraint specifying an expected TargetInvocationException + + - + - Creates a constraint specifying that no exception is thrown + Compares two objects of a given Type for equality within a tolerance + The first object to compare + The second object to compare + The tolerance to use in the comparison + diff --git a/dep/NUnit.2.6.1/license.txt b/dep/NUnit.2.6.3/license.txt similarity index 91% rename from dep/NUnit.2.6.1/license.txt rename to dep/NUnit.2.6.3/license.txt index 530a6e0036d..b12903afb5e 100644 --- a/dep/NUnit.2.6.1/license.txt +++ b/dep/NUnit.2.6.3/license.txt @@ -1,4 +1,4 @@ -Copyright © 2002-2012 Charlie Poole +Copyright © 2002-2013 Charlie Poole Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov Copyright © 2000-2002 Philip A. Craig @@ -8,7 +8,7 @@ Permission is granted to anyone to use this software for any purpose, including 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment (see the following) in the product documentation is required. -Portions Copyright © 2002-2012 Charlie Poole or Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright © 2000-2002 Philip A. Craig +Portions Copyright © 2002-2013 Charlie Poole or Copyright © 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or Copyright © 2000-2002 Philip A. Craig 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. diff --git a/dep/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nuspec b/dep/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nuspec deleted file mode 100644 index 00baf93b0df..00000000000 --- a/dep/Newtonsoft.Json.5.0.8/Newtonsoft.Json.5.0.8.nuspec +++ /dev/null @@ -1,18 +0,0 @@ - - - - Newtonsoft.Json - 5.0.8 - Json.NET - James Newton-King - James Newton-King - https://raw.github.com/JamesNK/Newtonsoft.Json/master/LICENSE.md - http://james.newtonking.com/json - false - Json.NET is a popular high-performance JSON framework for .NET - - - en-US - json - - \ No newline at end of file diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.dll deleted file mode 100644 index 2024b03b53b..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.dll deleted file mode 100644 index a7dfbe06b34..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.dll deleted file mode 100644 index 0a159151ba7..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.dll deleted file mode 100644 index 52306fdbdce..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.dll deleted file mode 100644 index b278f27f1a4..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll deleted file mode 100644 index 2156ff18ff8..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll deleted file mode 100644 index c0168188fad..00000000000 Binary files a/dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll and /dev/null differ diff --git a/dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.dll new file mode 100644 index 00000000000..4763e1382ef Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.xml index 284b5aa678b..0aa4def6232 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/net20/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/net20/Newtonsoft.Json.xml @@ -127,6 +127,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1251,6 +1260,38 @@ true if this instance can convert the specified object type; otherwise, false. + + + Converts a F# discriminated union type to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts a to and from JSON. @@ -1320,6 +1361,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1353,6 +1399,12 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + Converts a to and from a string (e.g. "1.2.3.4"). @@ -2984,12 +3036,11 @@ Represents a view of a . - + Initializes a new instance of the class. The name. - Type of the property. @@ -3754,28 +3805,41 @@ - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - The that matches the object path or a null reference if no matching token is found. + A , or null. - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . + + + + Selects a collection of elements using a JPath expression. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. + An that contains the selected elements. + + + + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. @@ -3862,6 +3926,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -5513,6 +5583,22 @@ A JSON string representation of the object. + + + Serializes the specified object to a JSON string using a type, formatting and . + + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + + Serializes the specified object to a JSON string using formatting and . @@ -7727,7 +7813,7 @@ - Gets or sets the error. + Gets the error. The error. @@ -7957,31 +8043,31 @@ - Gets the member converter. + Gets or sets the member converter. The member converter. - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether this is ignored. true if ignored; otherwise, false. - Gets a value indicating whether this is readable. + Gets or sets a value indicating whether this is readable. true if readable; otherwise, false. - Gets a value indicating whether this is writable. + Gets or sets a value indicating whether this is writable. true if writable; otherwise, false. - Gets a value indicating whether this has a member attribute. + Gets or sets a value indicating whether this has a member attribute. true if has a member attribute; otherwise, false. @@ -7993,13 +8079,13 @@ - Gets a value indicating whether this is required. + Gets or sets a value indicating whether this is required. A value indicating whether this is required. - Gets a value indicating whether this property preserves object references. + Gets or sets a value indicating whether this property preserves object references. true if this instance is reference; otherwise, false. @@ -8007,31 +8093,31 @@ - Gets the property null value handling. + Gets or sets the property null value handling. The null value handling. - Gets the property default value handling. + Gets or sets the property default value handling. The default value handling. - Gets the property reference loop handling. + Gets or sets the property reference loop handling. The reference loop handling. - Gets the property object creation handling. + Gets or sets the property object creation handling. The object creation handling. - Gets or sets the type name handling. + Gets or sets or sets the type name handling. The type name handling. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.dll new file mode 100644 index 00000000000..a87bedd4e60 Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.xml index de91ecdba87..e539581f475 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/net35/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/net35/Newtonsoft.Json.xml @@ -116,6 +116,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1236,6 +1245,38 @@ true if this instance can convert the specified object type; otherwise, false. + + + Converts a F# discriminated union type to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts an Entity Framework EntityKey to and from JSON. @@ -1369,6 +1410,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1402,6 +1448,12 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + Specifies how constructors are used when initializing objects during deserialization by the . @@ -1717,12 +1769,11 @@ Represents a view of a . - + Initializes a new instance of the class. The name. - Type of the property. @@ -2783,28 +2834,41 @@ - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - The that matches the object path or a null reference if no matching token is found. + A , or null. - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . + + + + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + An that contains the selected elements. + + + + Selects a collection of elements using a JPath expression. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. @@ -2891,6 +2955,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -2921,6 +2991,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -4682,6 +4758,22 @@ A JSON string representation of the object. + + + Serializes the specified object to a JSON string using a type, formatting and . + + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + + Serializes the specified object to a JSON string using formatting and . @@ -6927,7 +7019,7 @@ - Gets or sets the error. + Gets the error. The error. @@ -7094,31 +7186,31 @@ - Gets the member converter. + Gets or sets the member converter. The member converter. - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether this is ignored. true if ignored; otherwise, false. - Gets a value indicating whether this is readable. + Gets or sets a value indicating whether this is readable. true if readable; otherwise, false. - Gets a value indicating whether this is writable. + Gets or sets a value indicating whether this is writable. true if writable; otherwise, false. - Gets a value indicating whether this has a member attribute. + Gets or sets a value indicating whether this has a member attribute. true if has a member attribute; otherwise, false. @@ -7130,13 +7222,13 @@ - Gets a value indicating whether this is required. + Gets or sets a value indicating whether this is required. A value indicating whether this is required. - Gets a value indicating whether this property preserves object references. + Gets or sets a value indicating whether this property preserves object references. true if this instance is reference; otherwise, false. @@ -7144,31 +7236,31 @@ - Gets the property null value handling. + Gets or sets the property null value handling. The null value handling. - Gets the property default value handling. + Gets or sets the property default value handling. The default value handling. - Gets the property reference loop handling. + Gets or sets the property reference loop handling. The reference loop handling. - Gets the property object creation handling. + Gets or sets the property object creation handling. The object creation handling. - Gets or sets the type name handling. + Gets or sets or sets the type name handling. The type name handling. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.dll new file mode 100644 index 00000000000..339e470c33c Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.xml index a414d08aa61..5204a37a147 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/net45/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/net40/Newtonsoft.Json.xml @@ -4,23 +4,6 @@ Newtonsoft.Json - - - Represents a BSON Oid (object id). - - - - - Initializes a new instance of the class. - - The Oid value. - - - - Gets or sets the value of the Oid. - - The value of the Oid. - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. @@ -133,6 +116,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1028,20 +1020,22 @@ The used when writing values to BSON. - + - Specifies how constructors are used when initializing objects during deserialization by the . + Represents a BSON Oid (object id). - + - First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor. + Initializes a new instance of the class. + The Oid value. - + - Json.NET will use a non-public default constructor before falling back to a paramatized constructor. + Gets or sets the value of the Oid. + The value of the Oid. @@ -1125,12 +1119,12 @@ true if this instance can convert the specified object type; otherwise, false. - + - Converts a to and from JSON and BSON. + Converts a to and from JSON. - + Writes the JSON representation of the object. @@ -1138,7 +1132,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1148,13 +1142,45 @@ The calling serializer. The object value. - + - Determines whether this instance can convert the specified object type. + Determines whether this instance can convert the specified value type. + + Type of the value. + + true if this instance can convert the specified value type; otherwise, false. + + + + + Converts a to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + The to read from. Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified value type. + + Type of the value. - true if this instance can convert the specified object type; otherwise, false. + true if this instance can convert the specified value type; otherwise, false. @@ -1205,44 +1231,26 @@ true if this can write JSON; otherwise, false. - - - Converts a to and from JSON. - - - + - Writes the JSON representation of the object. + Provides a base class for converting a to and from JSON. - The to write to. - The value. - The calling serializer. - + - Reads the JSON representation of the object. + Determines whether this instance can convert the specified object type. - The to read from. Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified value type. - - Type of the value. - true if this instance can convert the specified value type; otherwise, false. + true if this instance can convert the specified object type; otherwise, false. - + - Converts a to and from JSON. + Converts a F# discriminated union type to and from JSON. - + Writes the JSON representation of the object. @@ -1250,7 +1258,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1260,21 +1268,7 @@ The calling serializer. The object value. - - - Determines whether this instance can convert the specified value type. - - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - - - - Provides a base class for converting a to and from JSON. - - - + Determines whether this instance can convert the specified object type. @@ -1355,12 +1349,12 @@ true if this can write JSON; otherwise, false. - + - Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). + Converts a to and from JSON. - + Writes the JSON representation of the object. @@ -1368,7 +1362,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1378,53 +1372,21 @@ The calling serializer. The object value. - - - Gets or sets the date time styles used when converting a date to and from JSON. - - The date time styles used when converting a date to and from JSON. - - - - Gets or sets the date time format used when converting a date to and from JSON. - - The date time format used when converting a date to and from JSON. - - - - Gets or sets the culture used when converting a date to and from JSON. - - The culture used when converting a date to and from JSON. - - - - Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)). - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - + - Reads the JSON representation of the object. + Determines whether this instance can convert the specified object type. - The to read from. Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. + + true if this instance can convert the specified object type; otherwise, false. + - + - Converts a to and from JSON. + Converts a to and from JSON and BSON. - + Writes the JSON representation of the object. @@ -1432,7 +1394,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1442,7 +1404,7 @@ The calling serializer. The object value. - + Determines whether this instance can convert the specified object type. @@ -1488,6 +1450,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1521,6 +1488,27 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + + + + Specifies how constructors are used when initializing objects during deserialization by the . + + + + + First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor. + + + + + Json.NET will use a non-public default constructor before falling back to a paramatized constructor. + + Converts a to and from a string (e.g. "1.2.3.4"). @@ -1553,79 +1541,160 @@ true if this instance can convert the specified object type; otherwise, false. - + - Converts XML to and from JSON. + Specifies float format handling options when writing special floating point numbers, e.g. , + and with . - + - Writes the JSON representation of the object. + Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - The to write to. - The calling serializer. - The value. - + - Reads the JSON representation of the object. + Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. + Note that this will produce non-valid JSON. - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - + - Checks if the attributeName is a namespace attribute. + Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - True if attribute name is for a namespace attribute, otherwise false. - + - Determines whether this instance can convert the specified value type. + Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - + - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. + Floating point numbers are parsed to . - The name of the deserialize root element. - + - Gets or sets a flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. + Floating point numbers are parsed to . - true if the array attibute is written to the XML; otherwise, false. - + - Gets or sets a value indicating whether to write the root JSON object. + Instructs the how to serialize the collection. - true if the JSON root object is omitted; otherwise, false. - + - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Instructs the how to serialize the object. - + - Floating point numbers are parsed to . + Initializes a new instance of the class. - + - Floating point numbers are parsed to . + Initializes a new instance of the class with the specified container Id. + + The container Id. + + + + Gets or sets the id. + + The id. + + + + Gets or sets the title. + + The title. + + + + Gets or sets the description. + + The description. + + + + Gets the collection's items converter. + + The collection's items converter. + + + + Gets or sets a value that indicates whether to preserve object references. + + + true to keep object reference; otherwise, false. The default is false. + + + + + Gets or sets a value that indicates whether to preserve collection's items references. + + + true to keep collection's items object references; otherwise, false. The default is false. + + + + + Gets or sets the reference loop handling used when serializing the collection's items. + + The reference loop handling. + + + + Gets or sets the type name handling used when serializing the collection's items. + + The type name handling. + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with the specified container Id. + + The container Id. + + + + The exception thrown when an error occurs during Json serialization or deserialization. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class + with a specified error message. + + The error message that explains the reason for the exception. + + + + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. + + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + + + + Initializes a new instance of the class. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). @@ -1688,2048 +1757,2021 @@ Time zone information should be preserved when converting. - + - Specifies default value handling options for the . + Specifies formatting options for the . - - - - - + - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. + No special formatting is applied. This is the default. - + - Ignore members where the member value is the same as the member's default value when serializing objects - so that is is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable typesl; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. + Causes child objects to be indented according to the and settings. - + - Members with a default value but no JSON will be set to their default value when deserializing. + Instructs the to use the specified constructor when deserializing that object. - + - Ignore members where the member value is the same as the member's default value when serializing objects - and sets members to their default value when deserializing. + Instructs the to deserialize properties with no matching class member into the specified collection + and write values during serialization. - + - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . + Initializes a new instance of the class. - + - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". + Gets or sets a value that indicates whether to write extension data when serializing the object. + + true to write extension data when serializing the object; otherwise, false. The default is true. + - + - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. + Gets or sets a value that indicates whether to read extension data when deserializing the object. + + true to read extension data when deserializing the object; otherwise, false. The default is true. + - + - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. + Represents a trace writer that writes to the application's instances. - + - Specifies formatting options for the . + Represents a trace writer. - + - No special formatting is applied. This is the default. + Writes the specified trace level, message and optional exception. + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Causes child objects to be indented according to the and settings. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. + The that will be used to filter the trace messages passed to the writer. - + - Provides an interface to enable a class to return line and position information. + Writes the specified trace level, message and optional exception. + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Gets a value indicating whether the class can return line information. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. - - true if LineNumber and LinePosition can be provided; otherwise, false. - + + The that will be used to filter the trace messages passed to the writer. + - + - Gets the current line number. + Get and set values for a using dynamic methods. - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). - + - Gets the current line position. + Provides methods to get and set values. - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). - + - Instructs the how to serialize the collection. + Sets the value. + The target to set the value on. + The value to set on the target. - + - Instructs the how to serialize the object. + Gets the value. + The target to get the value from. + The value. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + The member info. - + - Initializes a new instance of the class with the specified container Id. + Sets the value. - The container Id. + The target to set the value on. + The value to set on the target. - + - Gets or sets the id. + Gets the value. - The id. + The target to get the value from. + The value. - + - Gets or sets the title. + Contract details for a used by the . - The title. - + - Gets or sets the description. + Contract details for a used by the . - The description. - + - Gets the collection's items converter. + Gets the underlying type for the contract. - The collection's items converter. + The underlying type for the contract. - + - Gets or sets a value that indicates whether to preserve object references. + Gets or sets the type created during deserialization. - - true to keep object reference; otherwise, false. The default is false. - + The type created during deserialization. - + - Gets or sets a value that indicates whether to preserve collection's items references. + Gets or sets whether this type contract is serialized as a reference. - - true to keep collection's items object references; otherwise, false. The default is false. - + Whether this type contract is serialized as a reference. - + - Gets or sets the reference loop handling used when serializing the collection's items. + Gets or sets the default for this contract. - The reference loop handling. + The converter. - + - Gets or sets the type name handling used when serializing the collection's items. + Gets or sets all methods called immediately after deserialization of the object. - The type name handling. + The methods called immediately after deserialization of the object. - + - Initializes a new instance of the class. + Gets or sets all methods called during deserialization of the object. + The methods called during deserialization of the object. - + - Initializes a new instance of the class with a flag indicating whether the array can contain null items + Gets or sets all methods called after serialization of the object graph. - A flag indicating whether the array can contain null items. + The methods called after serialization of the object graph. - + - Initializes a new instance of the class with the specified container Id. + Gets or sets all methods called before serialization of the object. - The container Id. + The methods called before serialization of the object. - + - Gets or sets a value indicating whether null items are allowed in the collection. + Gets or sets all method called when an error is thrown during the serialization of the object. - true if null items are allowed in the collection; otherwise, false. + The methods called when an error is thrown during the serialization of the object. - + - Instructs the to use the specified constructor when deserializing that object. + Gets or sets the method called immediately after deserialization of the object. + The method called immediately after deserialization of the object. - + - Provides methods for converting between common language runtime types and JSON types. + Gets or sets the method called during deserialization of the object. - - - + The method called during deserialization of the object. - + - Represents JavaScript's boolean value true as a string. This field is read-only. + Gets or sets the method called after serialization of the object graph. + The method called after serialization of the object graph. - + - Represents JavaScript's boolean value false as a string. This field is read-only. + Gets or sets the method called before serialization of the object. + The method called before serialization of the object. - + - Represents JavaScript's null as a string. This field is read-only. + Gets or sets the method called when an error is thrown during the serialization of the object. + The method called when an error is thrown during the serialization of the object. - + - Represents JavaScript's undefined as a string. This field is read-only. + Gets or sets the default creator method used to create the object. + The default creator method used to create the object. - + - Represents JavaScript's positive infinity as a string. This field is read-only. + Gets or sets a value indicating whether the default creator is non public. + true if the default object creator is non-public; otherwise, false. - + - Represents JavaScript's negative infinity as a string. This field is read-only. + Initializes a new instance of the class. + The underlying type for the contract. - + - Represents JavaScript's NaN as a string. This field is read-only. + Gets or sets the default collection items . + The converter. - + - Converts the to its JSON string representation. + Gets or sets a value indicating whether the collection items preserve object references. - The value to convert. - A JSON string representation of the . + true if collection items preserve object references; otherwise, false. - + - Converts the to its JSON string representation using the specified. + Gets or sets the collection item reference loop handling. - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . + The reference loop handling. - + - Converts the to its JSON string representation. + Gets or sets the collection item type name handling. - The value to convert. - A JSON string representation of the . + The type name handling. - + - Converts the to its JSON string representation using the specified. + Represents a trace writer that writes to memory. When the trace message limit is + reached then old trace messages will be removed as new messages are added. - The value to convert. - The format the date will be converted to. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Initializes a new instance of the class. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Writes the specified trace level, message and optional exception. - The value to convert. - A JSON string representation of the . + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Converts the to its JSON string representation. + Returns an enumeration of the most recent trace messages. - The value to convert. - A JSON string representation of the . + An enumeration of the most recent trace messages. - + - Converts the to its JSON string representation. + Returns a of the most recent trace messages. - The value to convert. - A JSON string representation of the . + + A of the most recent trace messages. + - + - Converts the to its JSON string representation. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. - The value to convert. - A JSON string representation of the . + + The that will be used to filter the trace messages passed to the writer. + - + - Converts the to its JSON string representation. + Provides an interface to enable a class to return line and position information. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Gets a value indicating whether the class can return line information. - The value to convert. - A JSON string representation of the . + + true if LineNumber and LinePosition can be provided; otherwise, false. + - + - Converts the to its JSON string representation. + Gets the current line number. - The value to convert. - A JSON string representation of the . + The current line number or 0 if no line information is available (for example, HasLineInfo returns false). - + - Converts the to its JSON string representation. + Gets the current line position. - The value to convert. - A JSON string representation of the . + The current line position or 0 if no line information is available (for example, HasLineInfo returns false). - + - Converts the to its JSON string representation. + Specifies how strings are escaped when writing JSON text. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Only control characters (e.g. newline) are escaped. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + All non-ASCII and control characters (e.g. newline) are escaped. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Represents a raw JSON string. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Represents a value in JSON (string, integer, date, etc). - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Represents an abstract JSON token. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Represents a collection of objects. - The value to convert. - A JSON string representation of the . + The type of token - + - Converts the to its JSON string representation. + Gets the with the specified key. - The value to convert. - A JSON string representation of the . + - + - Converts the to its JSON string representation. + Compares the values of two tokens, including the values of all descendant tokens. - The value to convert. - The string delimiter character. - A JSON string representation of the . + The first to compare. + The second to compare. + true if the tokens are equal; otherwise false. - + - Converts the to its JSON string representation. + Adds the specified content immediately after this token. - The value to convert. - A JSON string representation of the . + A content object that contains simple content or a collection of content objects to be added after this token. - + - Serializes the specified object to a JSON string. + Adds the specified content immediately before this token. - The object to serialize. - A JSON string representation of the object. + A content object that contains simple content or a collection of content objects to be added before this token. - + - Serializes the specified object to a JSON string using formatting. + Returns a collection of the ancestor tokens of this token. - The object to serialize. - Indicates how the output is formatted. - - A JSON string representation of the object. - + A collection of the ancestor tokens of this token. - + - Serializes the specified object to a JSON string using a collection of . + Returns a collection of the sibling tokens after this token, in document order. - The object to serialize. - A collection converters used while serializing. - A JSON string representation of the object. + A collection of the sibling tokens after this tokens, in document order. - + - Serializes the specified object to a JSON string using formatting and a collection of . + Returns a collection of the sibling tokens before this token, in document order. - The object to serialize. - Indicates how the output is formatted. - A collection converters used while serializing. - A JSON string representation of the object. + A collection of the sibling tokens before this token, in document order. - + - Serializes the specified object to a JSON string using . + Gets the with the specified key converted to the specified type. - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A JSON string representation of the object. - + The type to convert the token to. + The token key. + The converted token value. - + - Serializes the specified object to a JSON string using formatting and . + Returns a collection of the child tokens of this token, in document order. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A JSON string representation of the object. - + An of containing the child tokens of this , in document order. - + - Serializes the specified object to a JSON string using a type, formatting and . + Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - - - A JSON string representation of the object. - + The type to filter the child tokens on. + A containing the child tokens of this , in document order. - + - Asynchronously serializes the specified object to a JSON string. - Serialization will happen on a new thread. + Returns a collection of the child values of this token, in document order. - The object to serialize. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - + The type to convert the values to. + A containing the child values of this , in document order. - + - Asynchronously serializes the specified object to a JSON string using formatting. - Serialization will happen on a new thread. + Removes this token from its parent. - The object to serialize. - Indicates how the output is formatted. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - - + - Asynchronously serializes the specified object to a JSON string using formatting and a collection of . - Serialization will happen on a new thread. + Replaces this token with the specified token. + + The value. + + + + Writes this token to a . + + A into which this method will write. + A collection of which will be used when writing the token. + + + + Returns the indented JSON for this token. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + The indented JSON for this token. - + - Deserializes the JSON to a .NET object. + Returns the JSON for this token using the given formatting and converters. - The JSON to deserialize. - The deserialized object from the Json string. + Indicates how the output is formatted. + A collection of which will be used when writing the token. + The JSON for this token using the given formatting and converters. - + - Deserializes the JSON to a .NET object using . + Performs an explicit conversion from to . - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type. + Performs an explicit conversion from to . - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the Json string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type. + Performs an explicit conversion from to . - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the Json string. + The value. + The result of the conversion. - + - Deserializes the JSON to the given anonymous type. + Performs an explicit conversion from to . - - The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the given anonymous type using . + Performs an explicit conversion from to . - - The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized anonymous type from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type using a collection of . + Performs an explicit conversion from to . - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type using . + Performs an explicit conversion from to . - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type using a collection of . + Performs an explicit conversion from to . - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. + The value. + The result of the conversion. - + - Deserializes the JSON to the specified .NET type using . + Performs an explicit conversion from to . - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + The value. + The result of the conversion. - + - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. + Performs an explicit conversion from to . - The type of the object to deserialize to. - The JSON to deserialize. - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + The value. + The result of the conversion. - + - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. + Performs an explicit conversion from to . - The type of the object to deserialize to. - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + The value. + The result of the conversion. - + - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. + Performs an explicit conversion from to . - The JSON to deserialize. - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + The value. + The result of the conversion. - + - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. + Performs an explicit conversion from to . - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + The value. + The result of the conversion. - + - Populates the object with values from the JSON string. + Performs an explicit conversion from to . - The JSON to populate values from. - The target object to populate values onto. + The value. + The result of the conversion. - + - Populates the object with values from the JSON string using . + Performs an explicit conversion from to . - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - + The value. + The result of the conversion. - + - Asynchronously populates the object with values from the JSON string using . + Performs an explicit conversion from to . - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous populate operation. - + The value. + The result of the conversion. - + - Serializes the XML node to a JSON string. + Performs an explicit conversion from to . - The node to serialize. - A JSON string of the XmlNode. + The value. + The result of the conversion. - + - Serializes the XML node to a JSON string using formatting. + Performs an explicit conversion from to . - The node to serialize. - Indicates how the output is formatted. - A JSON string of the XmlNode. + The value. + The result of the conversion. - + - Serializes the XML node to a JSON string using formatting and omits the root object if is true. + Performs an explicit conversion from to . - The node to serialize. - Indicates how the output is formatted. - Omits writing the root object. - A JSON string of the XmlNode. + The value. + The result of the conversion. - + - Deserializes the XmlNode from a JSON string. + Performs an explicit conversion from to . - The JSON string. - The deserialized XmlNode + The value. + The result of the conversion. - + - Deserializes the XmlNode from a JSON string nested in a root elment specified by . + Performs an explicit conversion from to . - The JSON string. - The name of the root element to append when deserializing. - The deserialized XmlNode + The value. + The result of the conversion. - + - Deserializes the XmlNode from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Performs an explicit conversion from to . - The JSON string. - The name of the root element to append when deserializing. - - A flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized XmlNode + The value. + The result of the conversion. - + - Serializes the to a JSON string. + Performs an explicit conversion from to . - The node to convert to JSON. - A JSON string of the XNode. + The value. + The result of the conversion. - + - Serializes the to a JSON string using formatting. + Performs an explicit conversion from to . - The node to convert to JSON. - Indicates how the output is formatted. - A JSON string of the XNode. + The value. + The result of the conversion. - + - Serializes the to a JSON string using formatting and omits the root object if is true. + Performs an explicit conversion from to . - The node to serialize. - Indicates how the output is formatted. - Omits writing the root object. - A JSON string of the XNode. + The value. + The result of the conversion. - + - Deserializes the from a JSON string. + Performs an explicit conversion from to . - The JSON string. - The deserialized XNode + The value. + The result of the conversion. - + - Deserializes the from a JSON string nested in a root elment specified by . + Performs an explicit conversion from to . - The JSON string. - The name of the root element to append when deserializing. - The deserialized XNode + The value. + The result of the conversion. - + - Deserializes the from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Performs an explicit conversion from to . - The JSON string. - The name of the root element to append when deserializing. - - A flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized XNode + The value. + The result of the conversion. - + - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Instructs the to use the specified when serializing the member or class. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class. + Performs an explicit conversion from to . - Type of the converter. + The value. + The result of the conversion. - + - Gets the type of the converter. + Performs an explicit conversion from to . - The type of the converter. + The value. + The result of the conversion. - + - Represents a collection of . + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Instructs the how to serialize the collection. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class with the specified container Id. + Performs an explicit conversion from to . - The container Id. + The value. + The result of the conversion. - + - The exception thrown when an error occurs during Json serialization or deserialization. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + The value to create a from. + The initialized with the specified value. - + - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Gets or sets a value that indicates whether to write extension data when serializing the object. + Performs an implicit conversion from to . - - true to write extension data when serializing the object; otherwise, false. The default is true. - + The value to create a from. + The initialized with the specified value. - + - Gets or sets a value that indicates whether to read extension data when deserializing the object. + Performs an implicit conversion from to . - - true to read extension data when deserializing the object; otherwise, false. The default is true. - + The value to create a from. + The initialized with the specified value. - + - Instructs the not to serialize the public field or public read/write property value. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Instructs the how to serialize the object. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class with the specified member serialization. + Performs an implicit conversion from to . - The member serialization. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class with the specified container Id. + Performs an implicit conversion from to . - The container Id. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the member serialization. + Performs an implicit conversion from to . - The member serialization. + The value to create a from. + The initialized with the specified value. - + - Gets or sets a value that indicates whether the object's properties are required. + Performs an implicit conversion from to . - - A value indicating whether the object's properties are required. - + The value to create a from. + The initialized with the specified value. - + - Instructs the to always serialize the member with the specified name. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class with the specified name. + Performs an implicit conversion from to . - Name of the property. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the converter used when serializing the property's collection items. + Performs an implicit conversion from to . - The collection's items converter. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the null value handling used when serializing this property. + Performs an implicit conversion from to . - The null value handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the default value handling used when serializing this property. + Performs an implicit conversion from to . - The default value handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the reference loop handling used when serializing this property. + Performs an implicit conversion from to . - The reference loop handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the object creation handling used when deserializing this property. + Performs an implicit conversion from to . - The object creation handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the type name handling used when serializing this property. + Performs an implicit conversion from to . - The type name handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets whether this property's value is serialized as a reference. + Performs an implicit conversion from to . - Whether this property's value is serialized as a reference. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the order of serialization and deserialization of a member. + Performs an implicit conversion from to . - The numeric order of serialization or deserialization. + The value to create a from. + The initialized with the specified value. - + - Gets or sets a value indicating whether this property is required. + Performs an implicit conversion from to . - - A value indicating whether this property is required. - + The value to create a from. + The initialized with the specified value. - + - Gets or sets the name of the property. + Performs an implicit conversion from to . - The name of the property. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the the reference loop handling used when serializing the property's collection items. + Performs an implicit conversion from to . - The collection's items reference loop handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets the the type name handling used when serializing the property's collection items. + Performs an implicit conversion from to . - The collection's items type name handling. + The value to create a from. + The initialized with the specified value. - + - Gets or sets whether this property's collection items are serialized as a reference. + Performs an implicit conversion from to . - Whether this property's collection items are serialized as a reference. + The value to create a from. + The initialized with the specified value. - + - The exception thrown when an error occurs while reading Json text. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Creates an for this token. - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + An that can be used to read this token and its descendants. - + - Gets the line number indicating where the error occurred. + Creates a from an object. - The line number indicating where the error occurred. + The object that will be used to create . + A with the value of the specified object - + - Gets the line position indicating where the error occurred. + Creates a from an object using the specified . - The line position indicating where the error occurred. + The object that will be used to create . + The that will be used when reading the object. + A with the value of the specified object - + - Gets the path to the JSON where the error occurred. + Creates the specified .NET type from the . - The path to the JSON where the error occurred. + The object type that the token will be deserialized to. + The new object created from the JSON value. - + - The exception thrown when an error occurs during Json serialization or deserialization. + Creates the specified .NET type from the . + The object type that the token will be deserialized to. + The new object created from the JSON value. - + - Initializes a new instance of the class. + Creates the specified .NET type from the using the specified . + The object type that the token will be deserialized to. + The that will be used when creating the object. + The new object created from the JSON value. - + - Initializes a new instance of the class - with a specified error message. + Creates the specified .NET type from the using the specified . - The error message that explains the reason for the exception. + The object type that the token will be deserialized to. + The that will be used when creating the object. + The new object created from the JSON value. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Creates a from a . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + An positioned at the token to read into this . + + An that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + - + - Initializes a new instance of the class. + Load a from a string that contains JSON. - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + A that contains JSON. + A populated from the string that contains JSON. - + - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. + Creates a from a . + An positioned at the token to read into this . + + An that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + - + - Initializes a new instance of the class. + Selects a using a JPath expression. Selects the token that matches the object path. + + A that contains a JPath expression. + + A , or null. - + - Creates a new instance. - The will not use default settings. + Selects a using a JPath expression. Selects the token that matches the object path. - - A new instance. - The will not use default settings. - + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . - + - Creates a new instance using the specified . - The will not use default settings. + Selects a collection of elements using a JPath expression. - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings. - + + A that contains a JPath expression. + + An that contains the selected elements. - + - Creates a new instance. - The will use default settings. + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. + + + + Returns the responsible for binding operations performed on this object. + The expression tree representation of the runtime value. - A new instance. - The will use default settings. + The to bind this object. - + - Creates a new instance using the specified . - The will use default settings. + Returns the responsible for binding operations performed on this object. - The settings to be applied to the . + The expression tree representation of the runtime value. - A new instance using the specified . - The will use default settings. + The to bind this object. - + - Populates the JSON values onto the target object. + Creates a new instance of the . All child tokens are recursively cloned. - The that contains the JSON structure to reader values from. - The target object to populate values onto. + A new instance of the . - + - Populates the JSON values onto the target object. + Gets a comparer that can compare two tokens for value equality. - The that contains the JSON structure to reader values from. - The target object to populate values onto. + A that can compare two nodes for value equality. - + - Deserializes the Json structure contained by the specified . + Gets or sets the parent. - The that contains the JSON structure to deserialize. - The being deserialized. + The parent. - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Gets the root of this . - The containing the object. - The of object being deserialized. - The instance of being deserialized. + The root of this . - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Gets the node type for this . - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. + The type. - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Gets a value indicating whether this token has child tokens. - The containing the object. - The of object being deserialized. - The instance of being deserialized. + + true if this token has child values; otherwise, false. + - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Gets the next sibling token of this node. - The used to write the Json structure. - The to serialize. + The that contains the next sibling token. - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Gets the previous sibling token of this node. - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - + The that contains the previous sibling token. - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Gets the path of the JSON token. - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Gets the with the specified key. - The used to write the Json structure. - The to serialize. + The with the specified key. - + - Occurs when the errors during serialization and deserialization. + Get the first child token of this token. + A containing the first child token of the . - + - Gets or sets the used by the serializer when resolving references. + Get the last child token of this token. + A containing the last child token of the . - + - Gets or sets the used by the serializer when resolving type names. + Initializes a new instance of the class from another object. + A object to copy from. - + - Gets or sets the used by the serializer when writing trace messages. + Initializes a new instance of the class with the given value. - The trace writer. + The value. - + - Gets or sets how type name writing and reading is handled by the serializer. + Initializes a new instance of the class with the given value. + The value. - + - Gets or sets how a type name assembly is written and resolved by the serializer. + Initializes a new instance of the class with the given value. - The type name assembly format. + The value. - + - Gets or sets how object references are preserved by the serializer. + Initializes a new instance of the class with the given value. + The value. - + - Get or set how reference loops (e.g. a class referencing itself) is handled. + Initializes a new instance of the class with the given value. + The value. - + - Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + Initializes a new instance of the class with the given value. + The value. - + - Get or set how null values are handled during serialization and deserialization. + Initializes a new instance of the class with the given value. + The value. - + - Get or set how null default are handled during serialization and deserialization. + Initializes a new instance of the class with the given value. + The value. - + - Gets or sets how objects are created during deserialization. + Initializes a new instance of the class with the given value. - The object creation handling. + The value. - + - Gets or sets how constructors are used during deserialization. + Initializes a new instance of the class with the given value. - The constructor handling. + The value. - + - Gets a collection that will be used during serialization. + Initializes a new instance of the class with the given value. - Collection that will be used during serialization. + The value. - + - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. + Initializes a new instance of the class with the given value. + The value. - + - Gets or sets the used by the serializer when invoking serialization callback methods. + Initializes a new instance of the class with the given value. - The context. + The value. - + - Indicates how JSON text output is formatted. + Initializes a new instance of the class with the given value. + The value. - + - Get or set how dates are written to JSON text. + Creates a comment with the given value. + The value. + A comment with the given value. - + - Get or set how time zones are handling during serialization and deserialization. + Creates a string with the given value. + The value. + A string with the given value. - + - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + Writes this token to a . + A into which this method will write. + A collection of which will be used when writing the token. - + - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Indicates whether the current object is equal to another object of the same type. + + true if the current object is equal to the parameter; otherwise, false. + + An object to compare with this object. - + - Get or set how special floating point numbers, e.g. , - and , - are written as JSON text. + Determines whether the specified is equal to the current . + The to compare with the current . + + true if the specified is equal to the current ; otherwise, false. + + + The parameter is null. + - + - Get or set how strings are escaped when writing JSON text. + Serves as a hash function for a particular type. + + A hash code for the current . + - + - Get or set how and values are formatting when writing JSON text. + Returns a that represents this instance. + + A that represents this instance. + - + - Gets or sets the culture used when reading JSON. Defaults to . + Returns a that represents this instance. + The format. + + A that represents this instance. + - + - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + Returns a that represents this instance. + The format provider. + + A that represents this instance. + - + - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. + Returns a that represents this instance. - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - + The format. + The format provider. + + A that represents this instance. + - + - Specifies the settings on a object. + Returns the responsible for binding operations performed on this object. + The expression tree representation of the runtime value. + + The to bind this object. + - + - Initializes a new instance of the class. + Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. + An object to compare with this instance. + + A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: + Value + Meaning + Less than zero + This instance is less than . + Zero + This instance is equal to . + Greater than zero + This instance is greater than . + + + is not the same type as this instance. + - + - Gets or sets how reference loops (e.g. a class referencing itself) is handled. + Gets a value indicating whether this token has child tokens. - Reference loop handling. + + true if this token has child values; otherwise, false. + - + - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + Gets the node type for this . - Missing member handling. + The type. - + - Gets or sets how objects are created during deserialization. + Gets or sets the underlying token value. - The object creation handling. + The underlying token value. - + - Gets or sets how null values are handled during serialization and deserialization. + Initializes a new instance of the class from another object. - Null value handling. + A object to copy from. - + - Gets or sets how null default are handled during serialization and deserialization. + Initializes a new instance of the class. - The default value handling. + The raw json. - + - Gets or sets a collection that will be used during serialization. + Creates an instance of with the content of the reader's current token. - The converters. + The reader. + An instance of with the content of the reader's current token. - + - Gets or sets how object references are preserved by the serializer. + Indicating whether a property is required. - The preserve references handling. - + - Gets or sets how type name writing and reading is handled by the serializer. + The property is not required. The default state. - The type name handling. - + - Gets or sets how a type name assembly is written and resolved by the serializer. + The property must be defined in JSON but can be a null value. - The type name assembly format. - + - Gets or sets how constructors are used during deserialization. + The property must be defined in JSON and cannot be a null value. - The constructor handling. - + - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. + Contract details for a used by the . - The contract resolver. - + - Gets or sets the used by the serializer when resolving references. + Initializes a new instance of the class. - The reference resolver. + The underlying type for the contract. - + - Gets or sets the used by the serializer when writing trace messages. + Gets the object's properties. - The trace writer. + The object's properties. - + - Gets or sets the used by the serializer when resolving type names. + Gets or sets the property name resolver. - The binder. + The property name resolver. - + - Gets or sets the error handler called during serialization and deserialization. + Contract details for a used by the . - The error handler called during serialization and deserialization. - + - Gets or sets the used by the serializer when invoking serialization callback methods. + Initializes a new instance of the class. - The context. + The underlying type for the contract. - + - Get or set how and values are formatting when writing JSON text. + Gets or sets the ISerializable object constructor. + The ISerializable object constructor. - + - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + Contract details for a used by the . - + - Indicates how JSON text output is formatted. + Initializes a new instance of the class. + The underlying type for the contract. - + - Get or set how dates are written to JSON text. + Contract details for a used by the . - + - Get or set how time zones are handling during serialization and deserialization. + Initializes a new instance of the class. + The underlying type for the contract. - + - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + Get and set values for a using dynamic methods. - + - Get or set how special floating point numbers, e.g. , - and , - are written as JSON. + Initializes a new instance of the class. + The member info. - + - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Sets the value. + The target to set the value on. + The value to set on the target. - + - Get or set how strings are escaped when writing JSON text. + Gets the value. + The target to get the value from. + The value. - + - Gets or sets the culture used when reading JSON. Defaults to . + Provides data for the Error event. - + - Gets a value indicating whether there will be a check for additional content after deserializing an object. + Initializes a new instance of the class. - - true if there will be a check for additional content after deserializing an object; otherwise, false. - + The current object. + The error context. - + - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. + Gets the current object the error event is being raised against. + The current object the error event is being raised against. - + - Initializes a new instance of the class with the specified . + Gets the error context. - The TextReader containing the XML data to read. + The error context. - + - Reads the next JSON token from the stream. + Represents a view of a . + + + + + Initializes a new instance of the class. + + The name. + + + + When overridden in a derived class, returns whether resetting an object changes its value. - true if the next token was read successfully; false if there are no more tokens to read. + true if resetting the component changes its value; otherwise, false. + The component to test for reset capability. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, gets the current value of the property on a component. - A or a null reference if the next JSON token is null. This method will return null at the end of an array. + The value of a property for a given component. + The component with the property for which to retrieve the value. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, resets the value for this property of the component to the default value. - A . This method will return null at the end of an array. + The component with the property value that is to be reset to the default value. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, sets the value of the component to a different value. - A . This method will return null at the end of an array. + The component with the property value that is to be set. + The new value. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - A . This method will return null at the end of an array. + + true if the property should be persisted; otherwise, false. + + The component with the property to be examined for persistence. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, gets the type of the component this property is bound to. - A . This method will return null at the end of an array. + + A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type. + - + - Reads the next JSON token from the stream as a . + When overridden in a derived class, gets a value indicating whether this property is read-only. - A . This method will return null at the end of an array. + + true if the property is read-only; otherwise, false. + - + - Changes the state to closed. + When overridden in a derived class, gets the type of the property. + + A that represents the type of the property. + - + - Gets a value indicating whether the class can return line information. + Gets the hash code for the name of the member. + - true if LineNumber and LinePosition can be provided; otherwise, false. + The hash code for the name of the member. - + - Gets the current line number. + Used to resolve references when serializing and deserializing JSON by the . - - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). - - + - Gets the current line position. + Resolves a reference to its object. - - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). - + The serialization context. + The reference to resolve. + The object that - + - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Gets the reference for the sepecified object. + The serialization context. + The object to get a reference for. + The reference to the object. - + - Creates an instance of the JsonWriter class using the specified . + Determines whether the specified object is referenced. - The TextWriter to write to. + The serialization context. + The object to test for a reference. + + true if the specified object is referenced; otherwise, false. + - + - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Adds a reference to the specified object. + The serialization context. + The reference. + The object to reference. - + - Closes this stream and the underlying stream. + Specifies reference handling options for the . + Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable. + + + - + - Writes the beginning of a Json object. + Do not preserve references when serializing types. - + - Writes the beginning of a Json array. + Preserve references when serializing into a JSON object structure. - + - Writes the start of a constructor with the given name. + Preserve references when serializing into a JSON array structure. - The name of the constructor. - + - Writes the specified end token. + Preserve references when serializing. - The end token to write. - + - Writes the property name of a name/value pair on a Json object. + Instructs the how to serialize the collection. - The name of the property. - + - Writes the property name of a name/value pair on a JSON object. + Initializes a new instance of the class. - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. - + - Writes indent characters. + Initializes a new instance of the class with a flag indicating whether the array can contain null items + A flag indicating whether the array can contain null items. - + - Writes the JSON value delimiter. + Initializes a new instance of the class with the specified container Id. + The container Id. - + - Writes an indent space. + Gets or sets a value indicating whether null items are allowed in the collection. + true if null items are allowed in the collection; otherwise, false. - + - Writes a value. - An error will raised if the value cannot be written as a single JSON token. + Specifies default value handling options for the . - The value to write. + + + + - + - Writes a null value. + Include members where the member value is the same as the member's default value when serializing objects. + Included members are written to JSON. Has no effect when deserializing. - + - Writes an undefined value. + Ignore members where the member value is the same as the member's default value when serializing objects + so that is is not written to JSON. + This option will ignore all default values (e.g. null for objects and nullable typesl; 0 for integers, + decimals and floating point numbers; and false for booleans). The default value ignored can be changed by + placing the on the property. - + - Writes raw JSON. + Members with a default value but no JSON will be set to their default value when deserializing. - The raw JSON to write. - + - Writes a value. + Ignore members where the member value is the same as the member's default value when serializing objects + and sets members to their default value when deserializing. - The value to write. - + - Writes a value. + Instructs the to use the specified when serializing the member or class. - The value to write. - + - Writes a value. + Initializes a new instance of the class. - The value to write. + Type of the converter. - + - Writes a value. + Gets the type of the converter. - The value to write. + The type of the converter. - + - Writes a value. + Instructs the how to serialize the object. - The value to write. - + - Writes a value. + Initializes a new instance of the class. - The value to write. - + - Writes a value. + Initializes a new instance of the class with the specified member serialization. - The value to write. + The member serialization. - + - Writes a value. + Initializes a new instance of the class with the specified container Id. - The value to write. + The container Id. - + - Writes a value. + Gets or sets the member serialization. - The value to write. + The member serialization. - + - Writes a value. + Gets or sets a value that indicates whether the object's properties are required. - The value to write. + + A value indicating whether the object's properties are required. + - + - Writes a value. + Specifies the settings on a object. - The value to write. - + - Writes a value. + Initializes a new instance of the class. - The value to write. - + - Writes a value. + Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The value to write. + Reference loop handling. - + - Writes a value. + Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The value to write. + Missing member handling. - + - Writes a value. + Gets or sets how objects are created during deserialization. - The value to write. + The object creation handling. - + - Writes a value. + Gets or sets how null values are handled during serialization and deserialization. - The value to write. + Null value handling. - + - Writes a value. + Gets or sets how null default are handled during serialization and deserialization. - The value to write. + The default value handling. - + - Writes a value. + Gets or sets a collection that will be used during serialization. - The value to write. + The converters. - + - Writes a value. + Gets or sets how object references are preserved by the serializer. - The value to write. + The preserve references handling. - + - Writes a value. + Gets or sets how type name writing and reading is handled by the serializer. - The value to write. + The type name handling. - + - Writes a value. + Gets or sets how a type name assembly is written and resolved by the serializer. - The value to write. + The type name assembly format. - + - Writes a value. + Gets or sets how constructors are used during deserialization. - The value to write. + The constructor handling. - + - Writes out a comment /*...*/ containing the specified text. + Gets or sets the contract resolver used by the serializer when + serializing .NET objects to JSON and vice versa. - Text to place inside the comment. + The contract resolver. - + - Writes out the given white space. + Gets or sets the used by the serializer when resolving references. - The string of white space characters. + The reference resolver. - + - Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented. + Gets or sets the used by the serializer when writing trace messages. + The trace writer. - + - Gets or sets which character to use to quote attribute values. + Gets or sets the used by the serializer when resolving type names. + The binder. - + - Gets or sets which character to use for indenting when is set to Formatting.Indented. + Gets or sets the error handler called during serialization and deserialization. + The error handler called during serialization and deserialization. - + - Gets or sets a value indicating whether object names will be surrounded with quotes. + Gets or sets the used by the serializer when invoking serialization callback methods. + The context. - + - Specifies the type of Json token. + Get or set how and values are formatting when writing JSON text. - + - This is returned by the if a method has not been called. + Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - + - An object start token. + Indicates how JSON text output is formatted. - + - An array start token. + Get or set how dates are written to JSON text. - + - A constructor start token. + Get or set how time zones are handling during serialization and deserialization. - + - An object property name. + Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - + - A comment. + Get or set how special floating point numbers, e.g. , + and , + are written as JSON. - + - Raw JSON. + Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - + - An integer. + Get or set how strings are escaped when writing JSON text. - + - A float. + Gets or sets the culture used when reading JSON. Defaults to . - + - A string. + Gets a value indicating whether there will be a check for additional content after deserializing an object. + + true if there will be a check for additional content after deserializing an object; otherwise, false. + - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - - - A Date. - - - - - Byte data. - - - + Represents a reader that provides validation. @@ -3839,2928 +3881,3009 @@ The specified in the constructor. - + - The exception thrown when an error occurs while reading Json text. + Compares tokens to determine whether they are equal. - + - Initializes a new instance of the class. + Determines whether the specified objects are equal. + The first object of type to compare. + The second object of type to compare. + + true if the specified objects are equal; otherwise, false. + - + - Initializes a new instance of the class - with a specified error message. + Returns a hash code for the specified object. - The error message that explains the reason for the exception. + The for which a hash code is to be returned. + A hash code for the specified object. + The type of is a reference type and is null. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Specifies the member serialization options for the . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Initializes a new instance of the class. + All public members are serialized by default. Members can be excluded using or . + This is the default member serialization mode. - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - + - Gets the path to the JSON where the error occurred. + Only members must be marked with or are serialized. + This member serialization mode can also be set by marking the class with . - The path to the JSON where the error occurred. - + - Contains the LINQ to JSON extension methods. + All public and private fields are serialized. Members can be excluded using or . + This member serialization mode can also be set by marking the class with + and setting IgnoreSerializableAttribute on to false. - + - Returns a collection of tokens that contains the ancestors of every token in the source collection. + Specifies how object creation is handled by the . - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every node in the source collection. - + - Returns a collection of tokens that contains the descendants of every token in the source collection. + Reuse existing objects, create new objects when needed. - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every node in the source collection. - + - Returns a collection of child properties of every object in the source collection. + Only reuse existing objects. - An of that contains the source collection. - An of that contains the properties of every object in the source collection. - + - Returns a collection of child values of every object in the source collection with the given key. + Always create new objects. - An of that contains the source collection. - The token key. - An of that contains the values of every node in the source collection with the given key. - + - Returns a collection of child values of every object in the source collection. + Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). - An of that contains the source collection. - An of that contains the values of every node in the source collection. - + - Returns a collection of converted child values of every object in the source collection with the given key. + Writes the JSON representation of the object. - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every node in the source collection with the given key. + The to write to. + The value. + The calling serializer. - + - Returns a collection of converted child values of every object in the source collection. + Reads the JSON representation of the object. - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every node in the source collection. + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. - + - Converts the value. + Gets or sets the date time styles used when converting a date to and from JSON. - The type to convert the value to. - A cast as a of . - A converted value. + The date time styles used when converting a date to and from JSON. - + - Converts the value. + Gets or sets the date time format used when converting a date to and from JSON. - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. + The date time format used when converting a date to and from JSON. - + - Returns a collection of child tokens of every array in the source collection. + Gets or sets the culture used when converting a date to and from JSON. - The source collection type. - An of that contains the source collection. - An of that contains the values of every node in the source collection. + The culture used when converting a date to and from JSON. - + - Returns a collection of converted child tokens of every array in the source collection. + Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)). - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every node in the source collection. - + - Returns the input typed as . + Writes the JSON representation of the object. - An of that contains the source collection. - The input typed as . + The to write to. + The value. + The calling serializer. - + - Returns the input typed as . + Reads the JSON representation of the object. - The source collection type. - An of that contains the source collection. - The input typed as . + The to read from. + Type of the object. + The existing property value of the JSON that is being converted. + The calling serializer. + The object value. - + - Represents a collection of objects. + Converts XML to and from JSON. - The type of token - + - Gets the with the specified key. + Writes the JSON representation of the object. - + The to write to. + The calling serializer. + The value. - + - Represents a JSON array. + Reads the JSON representation of the object. - - - + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. - + - Represents a token that can contain other tokens. + Checks if the attributeName is a namespace attribute. + Attribute name to test. + The attribute name prefix if it has one, otherwise an empty string. + True if attribute name is for a namespace attribute, otherwise false. - + - Represents an abstract JSON token. + Determines whether this instance can convert the specified value type. + Type of the value. + + true if this instance can convert the specified value type; otherwise, false. + - + - Compares the values of two tokens, including the values of all descendant tokens. + Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. + The name of the deserialize root element. - + - Adds the specified content immediately after this token. + Gets or sets a flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. - A content object that contains simple content or a collection of content objects to be added after this token. + true if the array attibute is written to the XML; otherwise, false. - + - Adds the specified content immediately before this token. + Gets or sets a value indicating whether to write the root JSON object. - A content object that contains simple content or a collection of content objects to be added before this token. + true if the JSON root object is omitted; otherwise, false. - + - Returns a collection of the ancestor tokens of this token. + Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - A collection of the ancestor tokens of this token. - + - Returns a collection of the sibling tokens after this token, in document order. + Initializes a new instance of the class with the specified . - A collection of the sibling tokens after this tokens, in document order. + The TextReader containing the XML data to read. - + - Returns a collection of the sibling tokens before this token, in document order. + Reads the next JSON token from the stream. - A collection of the sibling tokens before this token, in document order. + + true if the next token was read successfully; false if there are no more tokens to read. + - + - Gets the with the specified key converted to the specified type. + Reads the next JSON token from the stream as a . - The type to convert the token to. - The token key. - The converted token value. + + A or a null reference if the next JSON token is null. This method will return null at the end of an array. + - + - Returns a collection of the child tokens of this token, in document order. + Reads the next JSON token from the stream as a . - An of containing the child tokens of this , in document order. + A . This method will return null at the end of an array. - + - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. + Reads the next JSON token from the stream as a . - The type to filter the child tokens on. - A containing the child tokens of this , in document order. + A . This method will return null at the end of an array. - + - Returns a collection of the child values of this token, in document order. + Reads the next JSON token from the stream as a . - The type to convert the values to. - A containing the child values of this , in document order. + A . This method will return null at the end of an array. - + - Removes this token from its parent. + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - Replaces this token with the specified token. + Reads the next JSON token from the stream as a . - The value. + A . This method will return null at the end of an array. - + - Writes this token to a . + Changes the state to closed. - A into which this method will write. - A collection of which will be used when writing the token. - + - Returns the indented JSON for this token. + Gets a value indicating whether the class can return line information. - The indented JSON for this token. + true if LineNumber and LinePosition can be provided; otherwise, false. - + - Returns the JSON for this token using the given formatting and converters. + Gets the current line number. - Indicates how the output is formatted. - A collection of which will be used when writing the token. - The JSON for this token using the given formatting and converters. + + The current line number or 0 if no line information is available (for example, HasLineInfo returns false). + - + - Performs an explicit conversion from to . + Gets the current line position. - The value. - The result of the conversion. + + The current line position or 0 if no line information is available (for example, HasLineInfo returns false). + - + - Performs an explicit conversion from to . + Instructs the to always serialize the member with the specified name. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class with the specified name. - The value. - The result of the conversion. + Name of the property. - + - Performs an explicit conversion from to . + Gets or sets the converter used when serializing the property's collection items. - The value. - The result of the conversion. + The collection's items converter. - + - Performs an explicit conversion from to . + Gets or sets the null value handling used when serializing this property. - The value. - The result of the conversion. + The null value handling. - + - Performs an explicit conversion from to . + Gets or sets the default value handling used when serializing this property. - The value. - The result of the conversion. + The default value handling. - + - Performs an explicit conversion from to . + Gets or sets the reference loop handling used when serializing this property. - The value. - The result of the conversion. + The reference loop handling. - + - Performs an explicit conversion from to . + Gets or sets the object creation handling used when deserializing this property. - The value. - The result of the conversion. + The object creation handling. - + - Performs an explicit conversion from to . + Gets or sets the type name handling used when serializing this property. - The value. - The result of the conversion. + The type name handling. - + - Performs an explicit conversion from to . + Gets or sets whether this property's value is serialized as a reference. - The value. - The result of the conversion. + Whether this property's value is serialized as a reference. - + - Performs an explicit conversion from to . + Gets or sets the order of serialization and deserialization of a member. - The value. - The result of the conversion. + The numeric order of serialization or deserialization. - + - Performs an explicit conversion from to . + Gets or sets a value indicating whether this property is required. - The value. - The result of the conversion. + + A value indicating whether this property is required. + - + - Performs an explicit conversion from to . + Gets or sets the name of the property. - The value. - The result of the conversion. + The name of the property. - + - Performs an explicit conversion from to . + Gets or sets the the reference loop handling used when serializing the property's collection items. - The value. - The result of the conversion. + The collection's items reference loop handling. - + - Performs an explicit conversion from to . + Gets or sets the the type name handling used when serializing the property's collection items. - The value. - The result of the conversion. + The collection's items type name handling. - + - Performs an explicit conversion from to . + Gets or sets whether this property's collection items are serialized as a reference. - The value. - The result of the conversion. + Whether this property's collection items are serialized as a reference. - + - Performs an explicit conversion from to . + Instructs the not to serialize the public field or public read/write property value. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Creates an instance of the JsonWriter class using the specified . - The value. - The result of the conversion. + The TextWriter to write to. - + - Performs an explicit conversion from to . + Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Closes this stream and the underlying stream. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes the beginning of a Json object. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes the beginning of a Json array. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes the start of a constructor with the given name. - The value. - The result of the conversion. + The name of the constructor. - + - Performs an explicit conversion from to . + Writes the specified end token. - The value. - The result of the conversion. + The end token to write. - + - Performs an explicit conversion from to . + Writes the property name of a name/value pair on a Json object. - The value. - The result of the conversion. + The name of the property. - + - Performs an explicit conversion from to . + Writes the property name of a name/value pair on a JSON object. - The value. - The result of the conversion. + The name of the property. + A flag to indicate whether the text should be escaped when it is written as a JSON property name. - + - Performs an explicit conversion from to . + Writes indent characters. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes the JSON value delimiter. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes an indent space. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes a value. + An error will raised if the value cannot be written as a single JSON token. - The value. - The result of the conversion. + The value to write. - + - Performs an explicit conversion from to . + Writes a null value. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes an undefined value. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Writes raw JSON. - The value. - The result of the conversion. + The raw JSON to write. - + - Performs an explicit conversion from to . + Writes a value. - The value. - The result of the conversion. + The value to write. - + - Performs an explicit conversion from to . + Writes a value. - The value. - The result of the conversion. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes a value. - The value to create a from. - The initialized with the specified value. + The value to write. - + - Performs an implicit conversion from to . + Writes out a comment /*...*/ containing the specified text. - The value to create a from. - The initialized with the specified value. + Text to place inside the comment. - + - Performs an implicit conversion from to . + Writes out the given white space. - The value to create a from. - The initialized with the specified value. + The string of white space characters. - + - Performs an implicit conversion from to . + Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Gets or sets which character to use to quote attribute values. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Gets or sets which character to use for indenting when is set to Formatting.Indented. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Gets or sets a value indicating whether object names will be surrounded with quotes. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + The exception thrown when an error occurs while reading Json text. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Performs an implicit conversion from to . + Gets the path to the JSON where the error occurred. - The value to create a from. - The initialized with the specified value. + The path to the JSON where the error occurred. - + - Performs an implicit conversion from to . + The exception thrown when an error occurs while reading Json text. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. - + - Creates an for this token. + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - An that can be used to read this token and its descendants. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Creates a from an object. + Initializes a new instance of the class. - The object that will be used to create . - A with the value of the specified object + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Creates a from an object using the specified . + Gets the line number indicating where the error occurred. - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object + The line number indicating where the error occurred. - + - Creates the specified .NET type from the . + Gets the line position indicating where the error occurred. - The object type that the token will be deserialized to. - The new object created from the JSON value. + The line position indicating where the error occurred. - + - Creates the specified .NET type from the . + Gets the path to the JSON where the error occurred. - The object type that the token will be deserialized to. - The new object created from the JSON value. + The path to the JSON where the error occurred. - + - Creates the specified .NET type from the using the specified . + Represents a collection of . - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. - + - Creates the specified .NET type from the using the specified . + Provides methods for converting between common language runtime types and JSON types. - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. + + + - + - Creates a from a . + Represents JavaScript's boolean value true as a string. This field is read-only. - An positioned at the token to read into this . - - An that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - + - Load a from a string that contains JSON. + Represents JavaScript's boolean value false as a string. This field is read-only. - A that contains JSON. - A populated from the string that contains JSON. - + - Creates a from a . + Represents JavaScript's null as a string. This field is read-only. - An positioned at the token to read into this . - - An that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - + - Selects the token that matches the object path. + Represents JavaScript's undefined as a string. This field is read-only. - - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. - - The that matches the object path or a null reference if no matching token is found. - + - Selects the token that matches the object path. + Represents JavaScript's positive infinity as a string. This field is read-only. - - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. - - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. - + - Returns the responsible for binding operations performed on this object. + Represents JavaScript's negative infinity as a string. This field is read-only. - The expression tree representation of the runtime value. - - The to bind this object. - - + - Returns the responsible for binding operations performed on this object. + Represents JavaScript's NaN as a string. This field is read-only. - The expression tree representation of the runtime value. - - The to bind this object. - - + - Creates a new instance of the . All child tokens are recursively cloned. + Converts the to its JSON string representation. - A new instance of the . + The value to convert. + A JSON string representation of the . - + - Gets a comparer that can compare two tokens for value equality. + Converts the to its JSON string representation using the specified. - A that can compare two nodes for value equality. + The value to convert. + The format the date will be converted to. + The time zone handling when the date is converted to a string. + A JSON string representation of the . - + - Gets or sets the parent. + Converts the to its JSON string representation. - The parent. + The value to convert. + A JSON string representation of the . - + - Gets the root of this . + Converts the to its JSON string representation using the specified. - The root of this . + The value to convert. + The format the date will be converted to. + A JSON string representation of the . - + - Gets the node type for this . + Converts the to its JSON string representation. - The type. + The value to convert. + A JSON string representation of the . - + - Gets a value indicating whether this token has child tokens. + Converts the to its JSON string representation. - - true if this token has child values; otherwise, false. - + The value to convert. + A JSON string representation of the . - + - Gets the next sibling token of this node. + Converts the to its JSON string representation. - The that contains the next sibling token. + The value to convert. + A JSON string representation of the . - + - Gets the previous sibling token of this node. + Converts the to its JSON string representation. - The that contains the previous sibling token. + The value to convert. + A JSON string representation of the . - + - Gets the path of the JSON token. + Converts the to its JSON string representation. + The value to convert. + A JSON string representation of the . - + - Gets the with the specified key. + Converts the to its JSON string representation. - The with the specified key. + The value to convert. + A JSON string representation of the . - + - Get the first child token of this token. + Converts the to its JSON string representation. - A containing the first child token of the . + The value to convert. + A JSON string representation of the . - + - Get the last child token of this token. + Converts the to its JSON string representation. - A containing the last child token of the . + The value to convert. + A JSON string representation of the . - + - Raises the event. + Converts the to its JSON string representation. - The instance containing the event data. + The value to convert. + A JSON string representation of the . - + - Raises the event. + Converts the to its JSON string representation. - The instance containing the event data. + The value to convert. + A JSON string representation of the . - + - Raises the event. + Converts the to its JSON string representation. - The instance containing the event data. + The value to convert. + A JSON string representation of the . - + - Returns a collection of the child tokens of this token, in document order. + Converts the to its JSON string representation. - - An of containing the child tokens of this , in document order. - + The value to convert. + A JSON string representation of the . - + - Returns a collection of the child values of this token, in document order. + Converts the to its JSON string representation. - The type to convert the values to. - - A containing the child values of this , in document order. - + The value to convert. + A JSON string representation of the . - + - Returns a collection of the descendant tokens for this token in document order. + Converts the to its JSON string representation. - An containing the descendant tokens of the . + The value to convert. + A JSON string representation of the . - + - Adds the specified content as children of this . + Converts the to its JSON string representation. - The content to be added. + The value to convert. + A JSON string representation of the . - + - Adds the specified content as the first children of this . + Converts the to its JSON string representation. - The content to be added. + The value to convert. + A JSON string representation of the . - + - Creates an that can be used to add tokens to the . + Converts the to its JSON string representation. - An that is ready to have content written to it. + The value to convert. + A JSON string representation of the . - + - Replaces the children nodes of this token with the specified content. + Converts the to its JSON string representation. - The content. + The value to convert. + A JSON string representation of the . - + - Removes the child nodes from this token. + Converts the to its JSON string representation. + The value to convert. + The string delimiter character. + A JSON string representation of the . - + - Occurs when the list changes or an item in the list changes. + Converts the to its JSON string representation. + The value to convert. + A JSON string representation of the . - + - Occurs before an item is added to the collection. + Serializes the specified object to a JSON string. + The object to serialize. + A JSON string representation of the object. - + - Occurs when the items list of the collection has changed, or the collection is reset. + Serializes the specified object to a JSON string using formatting. + The object to serialize. + Indicates how the output is formatted. + + A JSON string representation of the object. + - + - Gets the container's children tokens. + Serializes the specified object to a JSON string using a collection of . - The container's children tokens. + The object to serialize. + A collection converters used while serializing. + A JSON string representation of the object. - + - Gets a value indicating whether this token has child tokens. + Serializes the specified object to a JSON string using formatting and a collection of . - - true if this token has child values; otherwise, false. - + The object to serialize. + Indicates how the output is formatted. + A collection converters used while serializing. + A JSON string representation of the object. - + - Get the first child token of this token. + Serializes the specified object to a JSON string using . - - A containing the first child token of the . - + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + A JSON string representation of the object. + - + - Get the last child token of this token. + Serializes the specified object to a JSON string using a type, formatting and . - - A containing the last child token of the . - + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + - + - Gets the count of child JSON tokens. + Serializes the specified object to a JSON string using formatting and . - The count of child JSON tokens + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + A JSON string representation of the object. + - + - Initializes a new instance of the class. + Serializes the specified object to a JSON string using a type, formatting and . + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + - + - Initializes a new instance of the class from another object. + Asynchronously serializes the specified object to a JSON string. + Serialization will happen on a new thread. - A object to copy from. + The object to serialize. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - Initializes a new instance of the class with the specified content. + Asynchronously serializes the specified object to a JSON string using formatting. + Serialization will happen on a new thread. - The contents of the array. + The object to serialize. + Indicates how the output is formatted. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - Initializes a new instance of the class with the specified content. + Asynchronously serializes the specified object to a JSON string using formatting and a collection of . + Serialization will happen on a new thread. - The contents of the array. + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - Loads an from a . + Deserializes the JSON to a .NET object. - A that will be read for the content of the . - A that contains the JSON that was read from the specified . + The JSON to deserialize. + The deserialized object from the Json string. - + - Load a from a string that contains JSON. + Deserializes the JSON to a .NET object using . - A that contains JSON. - A populated from the string that contains JSON. - - - + The JSON to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Creates a from an object. + Deserializes the JSON to the specified .NET type. - The object that will be used to create . - A with the values of the specified object + The JSON to deserialize. + The of object being deserialized. + The deserialized object from the Json string. - + - Creates a from an object. + Deserializes the JSON to the specified .NET type. - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object + The type of the object to deserialize to. + The JSON to deserialize. + The deserialized object from the Json string. - + - Writes this token to a . + Deserializes the JSON to the given anonymous type. - A into which this method will write. - A collection of which will be used when writing the token. + + The anonymous type to deserialize to. This can't be specified + traditionally and must be infered from the anonymous type passed + as a parameter. + + The JSON to deserialize. + The anonymous type object. + The deserialized anonymous type from the JSON string. - + - Determines the index of a specific item in the . + Deserializes the JSON to the given anonymous type using . - The object to locate in the . - - The index of if found in the list; otherwise, -1. - + + The anonymous type to deserialize to. This can't be specified + traditionally and must be infered from the anonymous type passed + as a parameter. + + The JSON to deserialize. + The anonymous type object. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized anonymous type from the JSON string. - + - Inserts an item to the at the specified index. + Deserializes the JSON to the specified .NET type using a collection of . - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - The is read-only. + The type of the object to deserialize to. + The JSON to deserialize. + Converters to use while deserializing. + The deserialized object from the JSON string. - + - Removes the item at the specified index. + Deserializes the JSON to the specified .NET type using . - The zero-based index of the item to remove. - - is not a valid index in the . - The is read-only. + The type of the object to deserialize to. + The object to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Returns an enumerator that iterates through the collection. + Deserializes the JSON to the specified .NET type using a collection of . - - A that can be used to iterate through the collection. - + The JSON to deserialize. + The type of the object to deserialize. + Converters to use while deserializing. + The deserialized object from the JSON string. - + - Adds an item to the . + Deserializes the JSON to the specified .NET type using . - The object to add to the . - The is read-only. + The JSON to deserialize. + The type of the object to deserialize to. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Removes all items from the . + Asynchronously deserializes the JSON to the specified .NET type. + Deserialization will happen on a new thread. - The is read-only. + The type of the object to deserialize to. + The JSON to deserialize. + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Determines whether the contains a specific value. + Asynchronously deserializes the JSON to the specified .NET type using . + Deserialization will happen on a new thread. - The object to locate in the . + The type of the object to deserialize to. + The JSON to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + - true if is found in the ; otherwise, false. + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + - Copies to. + Asynchronously deserializes the JSON to the specified .NET type. + Deserialization will happen on a new thread. - The array. - Index of the array. + The JSON to deserialize. + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Removes the first occurrence of a specific object from the . + Asynchronously deserializes the JSON to the specified .NET type using . + Deserialization will happen on a new thread. - The object to remove from the . + The JSON to deserialize. + The type of the object to deserialize to. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - The is read-only. - + - Gets the container's children tokens. + Populates the object with values from the JSON string. - The container's children tokens. + The JSON to populate values from. + The target object to populate values onto. - + - Gets the node type for this . + Populates the object with values from the JSON string using . - The type. + The JSON to populate values from. + The target object to populate values onto. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + - + - Gets the with the specified key. + Asynchronously populates the object with values from the JSON string using . - The with the specified key. + The JSON to populate values from. + The target object to populate values onto. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + + A task that represents the asynchronous populate operation. + - + - Gets or sets the at the specified index. + Serializes the XML node to a JSON string. - + The node to serialize. + A JSON string of the XmlNode. - + - Gets a value indicating whether the is read-only. + Serializes the XML node to a JSON string using formatting. - true if the is read-only; otherwise, false. + The node to serialize. + Indicates how the output is formatted. + A JSON string of the XmlNode. - + - Represents a JSON constructor. + Serializes the XML node to a JSON string using formatting and omits the root object if is true. + The node to serialize. + Indicates how the output is formatted. + Omits writing the root object. + A JSON string of the XmlNode. - + - Initializes a new instance of the class. + Deserializes the XmlNode from a JSON string. + The JSON string. + The deserialized XmlNode - + - Initializes a new instance of the class from another object. + Deserializes the XmlNode from a JSON string nested in a root elment specified by . - A object to copy from. + The JSON string. + The name of the root element to append when deserializing. + The deserialized XmlNode - + - Initializes a new instance of the class with the specified name and content. + Deserializes the XmlNode from a JSON string nested in a root elment specified by + and writes a .NET array attribute for collections. - The constructor name. - The contents of the constructor. + The JSON string. + The name of the root element to append when deserializing. + + A flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + The deserialized XmlNode - + - Initializes a new instance of the class with the specified name and content. + Serializes the to a JSON string. - The constructor name. - The contents of the constructor. + The node to convert to JSON. + A JSON string of the XNode. - + - Initializes a new instance of the class with the specified name. + Serializes the to a JSON string using formatting. - The constructor name. + The node to convert to JSON. + Indicates how the output is formatted. + A JSON string of the XNode. - + - Writes this token to a . + Serializes the to a JSON string using formatting and omits the root object if is true. - A into which this method will write. - A collection of which will be used when writing the token. + The node to serialize. + Indicates how the output is formatted. + Omits writing the root object. + A JSON string of the XNode. - + - Loads an from a . + Deserializes the from a JSON string. - A that will be read for the content of the . - A that contains the JSON that was read from the specified . + The JSON string. + The deserialized XNode - + - Gets the container's children tokens. + Deserializes the from a JSON string nested in a root elment specified by . - The container's children tokens. + The JSON string. + The name of the root element to append when deserializing. + The deserialized XNode - + - Gets or sets the name of this constructor. + Deserializes the from a JSON string nested in a root elment specified by + and writes a .NET array attribute for collections. - The constructor name. + The JSON string. + The name of the root element to append when deserializing. + + A flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + The deserialized XNode - + - Gets the node type for this . + Gets or sets a function that creates default . + Default settings are automatically used by serialization methods on , + and and on . + To serialize without using any default settings create a with + . - The type. - + - Gets the with the specified key. + The exception thrown when an error occurs during Json serialization or deserialization. - The with the specified key. - + - Represents a collection of objects. + Initializes a new instance of the class. - The type of token - + - An empty collection of objects. + Initializes a new instance of the class + with a specified error message. + The error message that explains the reason for the exception. - + - Initializes a new instance of the struct. + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - The enumerable. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Returns an enumerator that iterates through the collection. + Initializes a new instance of the class. - - A that can be used to iterate through the collection. - + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Returns an enumerator that iterates through a collection. + Serializes and deserializes objects into and from the JSON format. + The enables you to control how objects are encoded into JSON. - - An object that can be used to iterate through the collection. - - + - Determines whether the specified is equal to this instance. + Initializes a new instance of the class. - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - + - Returns a hash code for this instance. + Creates a new instance. + The will not use default settings. - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + A new instance. + The will not use default settings. - + - Gets the with the specified key. + Creates a new instance using the specified . + The will not use default settings. - + The settings to be applied to the . + + A new instance using the specified . + The will not use default settings. + - + - Represents a JSON object. + Creates a new instance. + The will use default settings. - - - + + A new instance. + The will use default settings. + - + - Initializes a new instance of the class. + Creates a new instance using the specified . + The will use default settings. + The settings to be applied to the . + + A new instance using the specified . + The will use default settings. + - + - Initializes a new instance of the class from another object. + Populates the JSON values onto the target object. - A object to copy from. + The that contains the JSON structure to reader values from. + The target object to populate values onto. - + - Initializes a new instance of the class with the specified content. + Populates the JSON values onto the target object. - The contents of the object. + The that contains the JSON structure to reader values from. + The target object to populate values onto. - + - Initializes a new instance of the class with the specified content. + Deserializes the Json structure contained by the specified . - The contents of the object. + The that contains the JSON structure to deserialize. + The being deserialized. - + - Gets an of this object's properties. + Deserializes the Json structure contained by the specified + into an instance of the specified type. - An of this object's properties. + The containing the object. + The of object being deserialized. + The instance of being deserialized. - + - Gets a the specified name. + Deserializes the Json structure contained by the specified + into an instance of the specified type. - The property name. - A with the specified name or null. + The containing the object. + The type of the object to deserialize. + The instance of being deserialized. - + - Gets an of this object's property values. + Deserializes the Json structure contained by the specified + into an instance of the specified type. - An of this object's property values. + The containing the object. + The of object being deserialized. + The instance of being deserialized. - + - Loads an from a . + Serializes the specified and writes the Json structure + to a Stream using the specified . - A that will be read for the content of the . - A that contains the JSON that was read from the specified . + The used to write the Json structure. + The to serialize. - + - Load a from a string that contains JSON. + Serializes the specified and writes the Json structure + to a Stream using the specified . - A that contains JSON. - A populated from the string that contains JSON. - - - + The used to write the Json structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + - + - Creates a from an object. + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object that will be used to create . - A with the values of the specified object + The used to write the Json structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + - + - Creates a from an object. + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object + The used to write the Json structure. + The to serialize. - + - Writes this token to a . + Occurs when the errors during serialization and deserialization. - A into which this method will write. - A collection of which will be used when writing the token. - + - Gets the with the specified property name. + Gets or sets the used by the serializer when resolving references. - Name of the property. - The with the specified property name. - + - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. + Gets or sets the used by the serializer when resolving type names. - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. - + - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. + Gets or sets the used by the serializer when writing trace messages. - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. + The trace writer. - + - Adds the specified property name. + Gets or sets how type name writing and reading is handled by the serializer. - Name of the property. - The value. - + - Removes the property with the specified name. + Gets or sets how a type name assembly is written and resolved by the serializer. - Name of the property. - true if item was successfully removed; otherwise, false. + The type name assembly format. - + - Tries the get value. + Gets or sets how object references are preserved by the serializer. - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - + - Returns an enumerator that iterates through the collection. + Get or set how reference loops (e.g. a class referencing itself) is handled. - - A that can be used to iterate through the collection. - - + - Raises the event with the provided arguments. + Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - Name of the property. - + - Raises the event with the provided arguments. + Get or set how null values are handled during serialization and deserialization. - Name of the property. - + - Returns the properties for this instance of a component. + Get or set how null default are handled during serialization and deserialization. - - A that represents the properties for this component instance. - - + - Returns the properties for this instance of a component using the attribute array as a filter. + Gets or sets how objects are created during deserialization. - An array of type that is used as a filter. - - A that represents the filtered properties for this component instance. - + The object creation handling. - + - Returns a collection of custom attributes for this instance of a component. + Gets or sets how constructors are used during deserialization. - - An containing the attributes for this object. - + The constructor handling. - + - Returns the class name of this instance of a component. + Gets a collection that will be used during serialization. - - The class name of the object, or null if the class does not have a name. - + Collection that will be used during serialization. - + - Returns the name of this instance of a component. + Gets or sets the contract resolver used by the serializer when + serializing .NET objects to JSON and vice versa. - - The name of the object, or null if the object does not have a name. - - + - Returns a type converter for this instance of a component. + Gets or sets the used by the serializer when invoking serialization callback methods. - - A that is the converter for this object, or null if there is no for this object. - + The context. - + - Returns the default event for this instance of a component. + Indicates how JSON text output is formatted. - - An that represents the default event for this object, or null if this object does not have events. - - + - Returns the default property for this instance of a component. + Get or set how dates are written to JSON text. - - A that represents the default property for this object, or null if this object does not have properties. - - + - Returns an editor of the specified type for this instance of a component. + Get or set how time zones are handling during serialization and deserialization. - A that represents the editor for this object. - - An of the specified type that is the editor for this object, or null if the editor cannot be found. - - + - Returns the events for this instance of a component using the specified attribute array as a filter. + Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - An array of type that is used as a filter. - - An that represents the filtered events for this component instance. - - + - Returns the events for this instance of a component. + Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - - An that represents the events for this component instance. - - + - Returns an object that contains the property described by the specified property descriptor. + Get or set how special floating point numbers, e.g. , + and , + are written as JSON text. - A that represents the property whose owner is to be found. - - An that represents the owner of the specified property. - - + - Returns the responsible for binding operations performed on this object. + Get or set how strings are escaped when writing JSON text. - The expression tree representation of the runtime value. - - The to bind this object. - - + - Gets the container's children tokens. + Get or set how and values are formatting when writing JSON text. - The container's children tokens. - + - Occurs when a property value changes. + Gets or sets the culture used when reading JSON. Defaults to . - + - Occurs when a property value is changing. + Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - + - Gets the node type for this . + Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The type. + + true if there will be a check for additional JSON content after deserializing an object; otherwise, false. + - + - Gets the with the specified key. + Contains the LINQ to JSON extension methods. - The with the specified key. - + - Gets or sets the with the specified property name. + Returns a collection of tokens that contains the ancestors of every token in the source collection. - + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains the ancestors of every node in the source collection. - + - Represents a JSON property. + Returns a collection of tokens that contains the descendants of every token in the source collection. + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains the descendants of every node in the source collection. - + - Initializes a new instance of the class from another object. + Returns a collection of child properties of every object in the source collection. - A object to copy from. + An of that contains the source collection. + An of that contains the properties of every object in the source collection. - + - Initializes a new instance of the class. + Returns a collection of child values of every object in the source collection with the given key. - The property name. - The property content. + An of that contains the source collection. + The token key. + An of that contains the values of every node in the source collection with the given key. - + - Initializes a new instance of the class. + Returns a collection of child values of every object in the source collection. - The property name. - The property content. + An of that contains the source collection. + An of that contains the values of every node in the source collection. - + - Writes this token to a . + Returns a collection of converted child values of every object in the source collection with the given key. - A into which this method will write. - A collection of which will be used when writing the token. + The type to convert the values to. + An of that contains the source collection. + The token key. + An that contains the converted values of every node in the source collection with the given key. - + - Loads an from a . + Returns a collection of converted child values of every object in the source collection. - A that will be read for the content of the . - A that contains the JSON that was read from the specified . + The type to convert the values to. + An of that contains the source collection. + An that contains the converted values of every node in the source collection. - + - Gets the container's children tokens. + Converts the value. - The container's children tokens. + The type to convert the value to. + A cast as a of . + A converted value. - + - Gets the property name. + Converts the value. - The property name. + The source collection type. + The type to convert the value to. + A cast as a of . + A converted value. - + - Gets or sets the property value. + Returns a collection of child tokens of every array in the source collection. - The property value. + The source collection type. + An of that contains the source collection. + An of that contains the values of every node in the source collection. - + - Gets the node type for this . + Returns a collection of converted child tokens of every array in the source collection. - The type. + An of that contains the source collection. + The type to convert the values to. + The source collection type. + An that contains the converted values of every node in the source collection. - + - Represents a view of a . + Returns the input typed as . + An of that contains the source collection. + The input typed as . - + - Initializes a new instance of the class. + Returns the input typed as . - The name. - Type of the property. + The source collection type. + An of that contains the source collection. + The input typed as . - + - When overridden in a derived class, returns whether resetting an object changes its value. + Represents a JSON constructor. - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - - + - When overridden in a derived class, gets the current value of the property on a component. + Represents a token that can contain other tokens. - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - - + - When overridden in a derived class, resets the value for this property of the component to the default value. + Raises the event. - The component with the property value that is to be reset to the default value. - + The instance containing the event data. - + - When overridden in a derived class, sets the value of the component to a different value. + Raises the event. - The component with the property value that is to be set. - The new value. - + The instance containing the event data. - + - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. + Raises the event. - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - + The instance containing the event data. - + - When overridden in a derived class, gets the type of the component this property is bound to. + Returns a collection of the child tokens of this token, in document order. - A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type. + An of containing the child tokens of this , in document order. - + - When overridden in a derived class, gets a value indicating whether this property is read-only. + Returns a collection of the child values of this token, in document order. + The type to convert the values to. - true if the property is read-only; otherwise, false. + A containing the child values of this , in document order. - + - When overridden in a derived class, gets the type of the property. + Returns a collection of the descendant tokens for this token in document order. - - A that represents the type of the property. - + An containing the descendant tokens of the . - + - Gets the hash code for the name of the member. + Adds the specified content as children of this . - - - The hash code for the name of the member. - + The content to be added. - + - Represents a raw JSON string. + Adds the specified content as the first children of this . + The content to be added. - + - Represents a value in JSON (string, integer, date, etc). + Creates an that can be used to add tokens to the . + An that is ready to have content written to it. - + - Initializes a new instance of the class from another object. + Replaces the children nodes of this token with the specified content. - A object to copy from. + The content. - + - Initializes a new instance of the class with the given value. + Removes the child nodes from this token. - The value. - + - Initializes a new instance of the class with the given value. + Occurs when the list changes or an item in the list changes. - The value. - + - Initializes a new instance of the class with the given value. + Occurs before an item is added to the collection. - The value. - + - Initializes a new instance of the class with the given value. + Occurs when the items list of the collection has changed, or the collection is reset. - The value. - + - Initializes a new instance of the class with the given value. + Gets the container's children tokens. - The value. + The container's children tokens. - + - Initializes a new instance of the class with the given value. + Gets a value indicating whether this token has child tokens. - The value. + + true if this token has child values; otherwise, false. + - + - Initializes a new instance of the class with the given value. + Get the first child token of this token. - The value. + + A containing the first child token of the . + - + - Initializes a new instance of the class with the given value. + Get the last child token of this token. - The value. + + A containing the last child token of the . + - + - Initializes a new instance of the class with the given value. + Gets the count of child JSON tokens. - The value. + The count of child JSON tokens - + - Initializes a new instance of the class with the given value. + Initializes a new instance of the class. - The value. - + - Initializes a new instance of the class with the given value. + Initializes a new instance of the class from another object. - The value. + A object to copy from. - + - Initializes a new instance of the class with the given value. + Initializes a new instance of the class with the specified name and content. - The value. + The constructor name. + The contents of the constructor. - + - Creates a comment with the given value. + Initializes a new instance of the class with the specified name and content. - The value. - A comment with the given value. + The constructor name. + The contents of the constructor. - + - Creates a string with the given value. + Initializes a new instance of the class with the specified name. - The value. - A string with the given value. + The constructor name. - + Writes this token to a . A into which this method will write. A collection of which will be used when writing the token. - + - Indicates whether the current object is equal to another object of the same type. + Loads an from a . - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Determines whether the specified is equal to the current . + Gets the container's children tokens. - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - The parameter is null. - + The container's children tokens. - + - Serves as a hash function for a particular type. + Gets or sets the name of this constructor. - - A hash code for the current . - + The constructor name. - + - Returns a that represents this instance. + Gets the node type for this . - - A that represents this instance. - + The type. - + - Returns a that represents this instance. + Gets the with the specified key. - The format. - - A that represents this instance. - + The with the specified key. - + - Returns a that represents this instance. + Represents a collection of objects. - The format provider. - - A that represents this instance. - + The type of token - + - Returns a that represents this instance. + An empty collection of objects. - The format. - The format provider. - - A that represents this instance. - - + - Returns the responsible for binding operations performed on this object. + Initializes a new instance of the struct. + + The enumerable. + + + + Returns an enumerator that iterates through the collection. - The expression tree representation of the runtime value. - The to bind this object. + A that can be used to iterate through the collection. - + - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. + Returns an enumerator that iterates through a collection. - An object to compare with this instance. - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . + An object that can be used to iterate through the collection. - - is not the same type as this instance. - - + - Gets a value indicating whether this token has child tokens. + Determines whether the specified is equal to this instance. - - true if this token has child values; otherwise, false. - + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + - + - Gets the node type for this . + Returns a hash code for this instance. - The type. + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + - + - Gets or sets the underlying token value. + Gets the with the specified key. - The underlying token value. + - + - Initializes a new instance of the class from another object. + Represents a JSON object. - A object to copy from. + + + - + - Initializes a new instance of the class. + Initializes a new instance of the class. - The raw json. - + - Creates an instance of with the content of the reader's current token. + Initializes a new instance of the class from another object. - The reader. - An instance of with the content of the reader's current token. + A object to copy from. - + - Compares tokens to determine whether they are equal. + Initializes a new instance of the class with the specified content. + The contents of the object. - + - Determines whether the specified objects are equal. + Initializes a new instance of the class with the specified content. - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - + The contents of the object. - + - Returns a hash code for the specified object. + Gets an of this object's properties. - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. + An of this object's properties. - + - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. + Gets a the specified name. + The property name. + A with the specified name or null. - + - Initializes a new instance of the class. + Gets an of this object's property values. - The token to read from. + An of this object's property values. - + - Reads the next JSON token from the stream as a . + Loads an from a . - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Reads the next JSON token from the stream as a . + Load a from a string that contains JSON. - A . This method will return null at the end of an array. + A that contains JSON. + A populated from the string that contains JSON. + + + - + - Reads the next JSON token from the stream as a . + Creates a from an object. - A . This method will return null at the end of an array. + The object that will be used to create . + A with the values of the specified object - + - Reads the next JSON token from the stream as a . + Creates a from an object. - A . This method will return null at the end of an array. + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object - + - Reads the next JSON token from the stream as a . + Writes this token to a . - A . This method will return null at the end of an array. + A into which this method will write. + A collection of which will be used when writing the token. - + - Reads the next JSON token from the stream as a . + Gets the with the specified property name. - A . This method will return null at the end of an array. + Name of the property. + The with the specified property name. - + - Reads the next JSON token from the stream. + Gets the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. - - true if the next token was read successfully; false if there are no more tokens to read. - + Name of the property. + One of the enumeration values that specifies how the strings will be compared. + The with the specified property name. - + - Specifies the type of token. + Tries to get the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + Name of the property. + The value. + One of the enumeration values that specifies how the strings will be compared. + true if a value was successfully retrieved; otherwise, false. - + - No token type has been set. + Adds the specified property name. + Name of the property. + The value. - + - A JSON object. + Removes the property with the specified name. + Name of the property. + true if item was successfully removed; otherwise, false. - + - A JSON array. + Tries the get value. + Name of the property. + The value. + true if a value was successfully retrieved; otherwise, false. - + - A JSON constructor. + Returns an enumerator that iterates through the collection. + + A that can be used to iterate through the collection. + - + - A JSON object property. + Raises the event with the provided arguments. + Name of the property. - + - A comment. + Raises the event with the provided arguments. + Name of the property. - + - An integer value. + Returns the properties for this instance of a component. + + A that represents the properties for this component instance. + - + - A float value. + Returns the properties for this instance of a component using the attribute array as a filter. + An array of type that is used as a filter. + + A that represents the filtered properties for this component instance. + - + - A string value. + Returns a collection of custom attributes for this instance of a component. + + An containing the attributes for this object. + - + - A boolean value. + Returns the class name of this instance of a component. + + The class name of the object, or null if the class does not have a name. + - + - A null value. + Returns the name of this instance of a component. + + The name of the object, or null if the object does not have a name. + - + - An undefined value. + Returns a type converter for this instance of a component. + + A that is the converter for this object, or null if there is no for this object. + - + - A date value. + Returns the default event for this instance of a component. + + An that represents the default event for this object, or null if this object does not have events. + - + - A raw JSON value. + Returns the default property for this instance of a component. + + A that represents the default property for this object, or null if this object does not have properties. + - + - A collection of bytes value. + Returns an editor of the specified type for this instance of a component. + A that represents the editor for this object. + + An of the specified type that is the editor for this object, or null if the editor cannot be found. + - + - A Guid value. + Returns the events for this instance of a component using the specified attribute array as a filter. + An array of type that is used as a filter. + + An that represents the filtered events for this component instance. + - + - A Uri value. + Returns the events for this instance of a component. + + An that represents the events for this component instance. + - + - A TimeSpan value. + Returns an object that contains the property described by the specified property descriptor. + A that represents the property whose owner is to be found. + + An that represents the owner of the specified property. + - + - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Returns the responsible for binding operations performed on this object. + The expression tree representation of the runtime value. + + The to bind this object. + - + - Initializes a new instance of the class writing to the given . + Gets the container's children tokens. - The container being written to. + The container's children tokens. - + - Initializes a new instance of the class. + Occurs when a property value changes. - + - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Occurs when a property value is changing. - + - Closes this stream and the underlying stream. + Gets the node type for this . + The type. - + - Writes the beginning of a Json object. + Gets the with the specified key. + The with the specified key. - + - Writes the beginning of a Json array. + Gets or sets the with the specified property name. + - + - Writes the start of a constructor with the given name. + Represents a JSON array. - The name of the constructor. + + + - + - Writes the end. + Initializes a new instance of the class. - The token. - + - Writes the property name of a name/value pair on a Json object. + Initializes a new instance of the class from another object. - The name of the property. + A object to copy from. - + - Writes a value. - An error will raised if the value cannot be written as a single JSON token. + Initializes a new instance of the class with the specified content. - The value to write. + The contents of the array. - + - Writes a null value. + Initializes a new instance of the class with the specified content. + The contents of the array. - + - Writes an undefined value. + Loads an from a . + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Writes raw JSON. + Load a from a string that contains JSON. - The raw JSON to write. + A that contains JSON. + A populated from the string that contains JSON. + + + - + - Writes out a comment /*...*/ containing the specified text. + Creates a from an object. - Text to place inside the comment. + The object that will be used to create . + A with the values of the specified object - + - Writes a value. + Creates a from an object. - The value to write. + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object - + - Writes a value. + Writes this token to a . - The value to write. + A into which this method will write. + A collection of which will be used when writing the token. - + - Writes a value. + Determines the index of a specific item in the . - The value to write. + The object to locate in the . + + The index of if found in the list; otherwise, -1. + - + - Writes a value. + Inserts an item to the at the specified index. - The value to write. + The zero-based index at which should be inserted. + The object to insert into the . + + is not a valid index in the . + The is read-only. - + - Writes a value. + Removes the item at the specified index. - The value to write. + The zero-based index of the item to remove. + + is not a valid index in the . + The is read-only. - + - Writes a value. + Returns an enumerator that iterates through the collection. - The value to write. + + A that can be used to iterate through the collection. + - + - Writes a value. + Adds an item to the . - The value to write. + The object to add to the . + The is read-only. - + - Writes a value. + Removes all items from the . - The value to write. + The is read-only. - + - Writes a value. + Determines whether the contains a specific value. - The value to write. + The object to locate in the . + + true if is found in the ; otherwise, false. + - + - Writes a value. + Copies to. - The value to write. + The array. + Index of the array. - + - Writes a value. + Removes the first occurrence of a specific object from the . - The value to write. + The object to remove from the . + + true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + + The is read-only. - + - Writes a value. + Gets the container's children tokens. - The value to write. + The container's children tokens. - + - Writes a value. + Gets the node type for this . - The value to write. + The type. - + - Writes a value. + Gets the with the specified key. - The value to write. + The with the specified key. - + - Writes a value. + Gets or sets the at the specified index. - The value to write. + - + - Writes a value. + Gets a value indicating whether the is read-only. - The value to write. + true if the is read-only; otherwise, false. - + - Writes a value. + Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. - The value to write. - + - Writes a value. + Initializes a new instance of the class. - The value to write. + The token to read from. - + - Writes a value. + Reads the next JSON token from the stream as a . - The value to write. + + A or a null reference if the next JSON token is null. This method will return null at the end of an array. + - + - Writes a value. + Reads the next JSON token from the stream as a . - The value to write. + A . This method will return null at the end of an array. - + - Gets the token being writen. + Reads the next JSON token from the stream as a . - The token being writen. + A . This method will return null at the end of an array. - + - Specifies the member serialization options for the . + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - Only members must be marked with or are serialized. - This member serialization mode can also be set by marking the class with . + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. + Reads the next JSON token from the stream. + + true if the next token was read successfully; false if there are no more tokens to read. + - + - Specifies missing member handling options for the . + Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. - + - Ignore a missing member and do not attempt to deserialize it. + Initializes a new instance of the class writing to the given . + The container being written to. - + - Throw a when a missing member is encountered during deserialization. + Initializes a new instance of the class. - + - Specifies null value handling options for the . + Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. - - - - - + - Include null values when serializing and deserializing objects. + Closes this stream and the underlying stream. - + - Ignore null values when serializing and deserializing objects. + Writes the beginning of a Json object. - + - Specifies how object creation is handled by the . + Writes the beginning of a Json array. - + - Reuse existing objects, create new objects when needed. + Writes the start of a constructor with the given name. + The name of the constructor. - + - Only reuse existing objects. + Writes the end. + The token. - + - Always create new objects. + Writes the property name of a name/value pair on a Json object. + The name of the property. - + - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable. + Writes a value. + An error will raised if the value cannot be written as a single JSON token. - - - + The value to write. - + - Do not preserve references when serializing types. + Writes a null value. - + - Preserve references when serializing into a JSON object structure. + Writes an undefined value. - + - Preserve references when serializing into a JSON array structure. + Writes raw JSON. + The raw JSON to write. - + - Preserve references when serializing. + Writes out a comment /*...*/ containing the specified text. + Text to place inside the comment. - + - Specifies reference loop handling options for the . + Writes a value. + The value to write. - + - Throw a when a loop is encountered. + Writes a value. + The value to write. - + - Ignore loop references and do not serialize. + Writes a value. + The value to write. - + - Serialize loop references. + Writes a value. + The value to write. - + - Indicating whether a property is required. + Writes a value. + The value to write. - + - The property is not required. The default state. + Writes a value. + The value to write. - + - The property must be defined in JSON but can be a null value. + Writes a value. + The value to write. - + - The property must be defined in JSON and cannot be a null value. + Writes a value. + The value to write. - + - Contains the JSON schema extension methods. + Writes a value. + The value to write. - + - Determines whether the is valid. + Writes a value. - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - + The value to write. - + - Determines whether the is valid. + Writes a value. - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - + The value to write. - + - Validates the specified . + Writes a value. - The source to test. - The schema to test with. + The value to write. - + - Validates the specified . + Writes a value. - The source to test. - The schema to test with. - The validation event handler. + The value to write. - + - An in-memory representation of a JSON Schema. + Writes a value. + The value to write. - + - Initializes a new instance of the class. + Writes a value. + The value to write. - + - Reads a from the specified . + Writes a value. - The containing the JSON Schema to read. - The object representing the JSON Schema. + The value to write. - + - Reads a from the specified . + Writes a value. - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. + The value to write. - + - Load a from a string that contains schema JSON. + Writes a value. - A that contains JSON. - A populated from the string that contains JSON. + The value to write. - + - Parses the specified json. + Writes a value. - The json. - The resolver. - A populated from the string that contains JSON. + The value to write. - + - Writes this schema to a . + Writes a value. - A into which this method will write. + The value to write. - + - Writes this schema to a using the specified . + Gets the token being writen. - A into which this method will write. - The resolver used. + The token being writen. - + - Returns a that represents the current . + Represents a JSON property. - - A that represents the current . - - + - Gets or sets the id. + Initializes a new instance of the class from another object. + A object to copy from. - + - Gets or sets the title. + Initializes a new instance of the class. + The property name. + The property content. - + - Gets or sets whether the object is required. + Initializes a new instance of the class. + The property name. + The property content. - + - Gets or sets whether the object is read only. + Writes this token to a . + A into which this method will write. + A collection of which will be used when writing the token. - + - Gets or sets whether the object is visible to users. + Loads an from a . + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Gets or sets whether the object is transient. + Gets the container's children tokens. + The container's children tokens. - + - Gets or sets the description of the object. + Gets the property name. + The property name. - + - Gets or sets the types of values allowed by the object. + Gets or sets the property value. - The type. + The property value. - + - Gets or sets the pattern. + Gets the node type for this . - The pattern. + The type. - + - Gets or sets the minimum length. + Specifies the type of token. - The minimum length. - + - Gets or sets the maximum length. + No token type has been set. - The maximum length. - + - Gets or sets a number that the value should be divisble by. + A JSON object. - A number that the value should be divisble by. - + - Gets or sets the minimum. + A JSON array. - The minimum. - + - Gets or sets the maximum. + A JSON constructor. - The maximum. - + - Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute. + A JSON object property. - A flag indicating whether the value can not equal the number defined by the "minimum" attribute. - + - Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute. + A comment. - A flag indicating whether the value can not equal the number defined by the "maximum" attribute. - + - Gets or sets the minimum number of items. + An integer value. - The minimum number of items. - + - Gets or sets the maximum number of items. + A float value. - The maximum number of items. - + - Gets or sets the of items. + A string value. - The of items. - + - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . + A boolean value. - - true if items are validated using their array position; otherwise, false. - - + - Gets or sets the of additional items. + A null value. - The of additional items. - + - Gets or sets a value indicating whether additional items are allowed. + An undefined value. - - true if additional items are allowed; otherwise, false. - - + - Gets or sets whether the array items must be unique. + A date value. - + - Gets or sets the of properties. + A raw JSON value. - The of properties. - + - Gets or sets the of additional properties. + A collection of bytes value. - The of additional properties. - + - Gets or sets the pattern properties. + A Guid value. - The pattern properties. - + - Gets or sets a value indicating whether additional properties are allowed. + A Uri value. - - true if additional properties are allowed; otherwise, false. - - + - Gets or sets the required property if this property is present. + A TimeSpan value. - The required property if this property is present. - + - Gets or sets the a collection of valid enum values allowed. + Contains the JSON schema extension methods. - A collection of valid enum values allowed. - + - Gets or sets disallowed types. + Determines whether the is valid. - The disallow types. + The source to test. + The schema to test with. + + true if the specified is valid; otherwise, false. + - + - Gets or sets the default value. + Determines whether the is valid. - The default value. + The source to test. + The schema to test with. + When this method returns, contains any error messages generated while validating. + + true if the specified is valid; otherwise, false. + - + - Gets or sets the collection of that this schema extends. + Validates the specified . - The collection of that this schema extends. + The source to test. + The schema to test with. - + - Gets or sets the format. + Validates the specified . - The format. + The source to test. + The schema to test with. + The validation event handler. @@ -6814,54 +6937,6 @@ The path to the JSON where the error occurred. - - - Generates a from a specified . - - - - - Generate a from the specified type. - - The type to generate a from. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Generate a from the specified type. - - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. - - - - Gets or sets how undefined schemas are handled by the serializer. - - - - - Gets or sets the contract resolver. - - The contract resolver. - Resolves from an id. @@ -6885,56 +6960,6 @@ The loaded schemas. - - - The value types allowed by the . - - - - - No type specified. - - - - - String type. - - - - - Float type. - - - - - Integer type. - - - - - Boolean type. - - - - - Object type. - - - - - Array type. - - - - - Null type. - - - - - Any type. - - Specifies undefined schema Id handling options for the . @@ -7204,53 +7229,14 @@ Initializes a new instance of the class. - - - - - Resolves the name of the property. - - Name of the property. - The property name camel cased. - - - - Used to resolve references when serializing and deserializing JSON by the . - - - - - Resolves a reference to its object. - - The serialization context. - The reference to resolve. - The object that - - - - Gets the reference for the sepecified object. - - The serialization context. - The object to get a reference for. - The reference to the object. - - - - Determines whether the specified object is referenced. - - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - + - + - Adds a reference to the specified object. + Resolves the name of the property. - The serialization context. - The reference. - The object to reference. + Name of the property. + The property name camel cased. @@ -7275,800 +7261,820 @@ Specifies the name of the serialized object. Specifies the name of the serialized object. - + - Represents a trace writer that writes to the application's instances. + Provides information surrounding an error. - + - Represents a trace writer. + Gets the error. + The error. - + - Writes the specified trace level, message and optional exception. + Gets the original object that caused the error. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. + The original object that caused the error. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Gets the member that caused the error. - The that will be used to filter the trace messages passed to the writer. + The member that caused the error. - + - Writes the specified trace level, message and optional exception. + Gets the path of the JSON location where the error occurred. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. + The path of the JSON location where the error occurred. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Gets or sets a value indicating whether this is handled. - - The that will be used to filter the trace messages passed to the writer. - + true if handled; otherwise, false. - + - Get and set values for a using dynamic methods. + Contract details for a used by the . - + - Provides methods to get and set values. + Initializes a new instance of the class. + The underlying type for the contract. - + - Sets the value. + Gets the of the collection items. - The target to set the value on. - The value to set on the target. + The of the collection items. - + - Gets the value. + Gets a value indicating whether the collection type is a multidimensional array. - The target to get the value from. - The value. + true if the collection type is a multidimensional array; otherwise, false. - + - Initializes a new instance of the class. + Handles serialization callback events. - The member info. + The object that raised the callback event. + The streaming context. - + - Sets the value. + Handles serialization error callback events. - The target to set the value on. - The value to set on the target. + The object that raised the callback event. + The streaming context. + The error context. - + - Gets the value. + Sets extension data for an object during deserialization. - The target to get the value from. - The value. + The object to set extension data on. + The extension data key. + The extension data value. - + - Provides information surrounding an error. + Gets extension data for an object during serialization. + The object to set extension data on. - + - Gets or sets the error. + Contract details for a used by the . - The error. - + - Gets the original object that caused the error. + Initializes a new instance of the class. - The original object that caused the error. + The underlying type for the contract. - + - Gets the member that caused the error. + Gets or sets the property name resolver. - The member that caused the error. + The property name resolver. - + - Gets the path of the JSON location where the error occurred. + Gets the of the dictionary keys. - The path of the JSON location where the error occurred. + The of the dictionary keys. - + - Gets or sets a value indicating whether this is handled. + Gets the of the dictionary values. - true if handled; otherwise, false. + The of the dictionary values. - + - Provides data for the Error event. + Maps a JSON property to a .NET member or constructor parameter. - + - Initializes a new instance of the class. + Returns a that represents this instance. - The current object. - The error context. + + A that represents this instance. + - + - Gets the current object the error event is being raised against. + Gets or sets the name of the property. - The current object the error event is being raised against. + The name of the property. - + - Gets the error context. + Gets or sets the type that declared this property. - The error context. + The type that declared this property. - + - Get and set values for a using dynamic methods. + Gets or sets the order of serialization and deserialization of a member. + The numeric order of serialization or deserialization. - + - Initializes a new instance of the class. + Gets or sets the name of the underlying member or parameter. - The member info. + The name of the underlying member or parameter. - + - Sets the value. + Gets the that will get and set the during serialization. - The target to set the value on. - The value to set on the target. + The that will get and set the during serialization. - + - Gets the value. + Gets or sets the type of the property. - The target to get the value from. - The value. + The type of the property. - + - Contract details for a used by the . + Gets or sets the for the property. + If set this converter takes presidence over the contract converter for the property type. + The converter. - + - Contract details for a used by the . + Gets or sets the member converter. + The member converter. - + - Contract details for a used by the . + Gets or sets a value indicating whether this is ignored. + true if ignored; otherwise, false. - + - Gets the underlying type for the contract. + Gets or sets a value indicating whether this is readable. - The underlying type for the contract. + true if readable; otherwise, false. - + - Gets or sets the type created during deserialization. + Gets or sets a value indicating whether this is writable. - The type created during deserialization. + true if writable; otherwise, false. - + - Gets or sets whether this type contract is serialized as a reference. + Gets or sets a value indicating whether this has a member attribute. - Whether this type contract is serialized as a reference. + true if has a member attribute; otherwise, false. - + - Gets or sets the default for this contract. + Gets the default value. - The converter. + The default value. - + - Gets or sets all methods called immediately after deserialization of the object. + Gets or sets a value indicating whether this is required. - The methods called immediately after deserialization of the object. + A value indicating whether this is required. - + - Gets or sets all methods called during deserialization of the object. + Gets or sets a value indicating whether this property preserves object references. - The methods called during deserialization of the object. + + true if this instance is reference; otherwise, false. + - + + + Gets or sets the property null value handling. + + The null value handling. + + + + Gets or sets the property default value handling. + + The default value handling. + + + + Gets or sets the property reference loop handling. + + The reference loop handling. + + + + Gets or sets the property object creation handling. + + The object creation handling. + + + + Gets or sets or sets the type name handling. + + The type name handling. + + - Gets or sets all methods called after serialization of the object graph. + Gets or sets a predicate used to determine whether the property should be serialize. - The methods called after serialization of the object graph. + A predicate used to determine whether the property should be serialize. - + - Gets or sets all methods called before serialization of the object. + Gets or sets a predicate used to determine whether the property should be serialized. - The methods called before serialization of the object. + A predicate used to determine whether the property should be serialized. - + - Gets or sets all method called when an error is thrown during the serialization of the object. + Gets or sets an action used to set whether the property has been deserialized. - The methods called when an error is thrown during the serialization of the object. + An action used to set whether the property has been deserialized. - + - Gets or sets the method called immediately after deserialization of the object. + Gets or sets the converter used when serializing the property's collection items. - The method called immediately after deserialization of the object. + The collection's items converter. - + - Gets or sets the method called during deserialization of the object. + Gets or sets whether this property's collection items are serialized as a reference. - The method called during deserialization of the object. + Whether this property's collection items are serialized as a reference. - + - Gets or sets the method called after serialization of the object graph. + Gets or sets the the type name handling used when serializing the property's collection items. - The method called after serialization of the object graph. + The collection's items type name handling. - + - Gets or sets the method called before serialization of the object. + Gets or sets the the reference loop handling used when serializing the property's collection items. - The method called before serialization of the object. + The collection's items reference loop handling. - + - Gets or sets the method called when an error is thrown during the serialization of the object. + A collection of objects. - The method called when an error is thrown during the serialization of the object. - + - Gets or sets the default creator method used to create the object. + Initializes a new instance of the class. - The default creator method used to create the object. + The type. - + - Gets or sets a value indicating whether the default creator is non public. + When implemented in a derived class, extracts the key from the specified element. - true if the default object creator is non-public; otherwise, false. + The element from which to extract the key. + The key for the specified element. - + - Initializes a new instance of the class. + Adds a object. - The underlying type for the contract. + The property to add to the collection. - + - Gets or sets the default collection items . + Gets the closest matching object. + First attempts to get an exact case match of propertyName and then + a case insensitive match. - The converter. + Name of the property. + A matching property if found. - + - Gets or sets a value indicating whether the collection items preserve object references. + Gets a property by property name. - true if collection items preserve object references; otherwise, false. + The name of the property to get. + Type property name string comparison. + A matching property if found. - + - Gets or sets the collection item reference loop handling. + Specifies missing member handling options for the . - The reference loop handling. - + - Gets or sets the collection item type name handling. + Ignore a missing member and do not attempt to deserialize it. - The type name handling. - + - Initializes a new instance of the class. + Throw a when a missing member is encountered during deserialization. - The underlying type for the contract. - + - Gets the of the collection items. + Specifies null value handling options for the . - The of the collection items. + + + + - + - Gets a value indicating whether the collection type is a multidimensional array. + Include null values when serializing and deserializing objects. - true if the collection type is a multidimensional array; otherwise, false. - + - Handles serialization callback events. + Ignore null values when serializing and deserializing objects. - The object that raised the callback event. - The streaming context. - + - Handles serialization error callback events. + Specifies reference loop handling options for the . - The object that raised the callback event. - The streaming context. - The error context. - + - Sets extension data for an object during deserialization. + Throw a when a loop is encountered. - The object to set extension data on. - The extension data key. - The extension data value. - + - Gets extension data for an object during serialization. + Ignore loop references and do not serialize. - The object to set extension data on. - + - Contract details for a used by the . + Serialize loop references. - + - Initializes a new instance of the class. + An in-memory representation of a JSON Schema. - The underlying type for the contract. - + - Gets or sets the property name resolver. + Initializes a new instance of the class. - The property name resolver. - + - Gets the of the dictionary keys. + Reads a from the specified . - The of the dictionary keys. + The containing the JSON Schema to read. + The object representing the JSON Schema. - + - Gets the of the dictionary values. + Reads a from the specified . - The of the dictionary values. + The containing the JSON Schema to read. + The to use when resolving schema references. + The object representing the JSON Schema. - + - Contract details for a used by the . + Load a from a string that contains schema JSON. + A that contains JSON. + A populated from the string that contains JSON. - + - Initializes a new instance of the class. + Parses the specified json. - The underlying type for the contract. + The json. + The resolver. + A populated from the string that contains JSON. - + - Gets the object's properties. + Writes this schema to a . - The object's properties. + A into which this method will write. - + - Gets or sets the property name resolver. + Writes this schema to a using the specified . - The property name resolver. + A into which this method will write. + The resolver used. - + - Contract details for a used by the . + Returns a that represents the current . + + A that represents the current . + - + - Initializes a new instance of the class. + Gets or sets the id. - The underlying type for the contract. - + - Gets or sets the ISerializable object constructor. + Gets or sets the title. - The ISerializable object constructor. - + - Contract details for a used by the . + Gets or sets whether the object is required. - + - Initializes a new instance of the class. + Gets or sets whether the object is read only. - The underlying type for the contract. - + - Contract details for a used by the . + Gets or sets whether the object is visible to users. - + - Initializes a new instance of the class. + Gets or sets whether the object is transient. - The underlying type for the contract. - + - Gets or sets the object member serialization. + Gets or sets the description of the object. - The member object serialization. - + - Gets or sets a value that indicates whether the object's properties are required. + Gets or sets the types of values allowed by the object. - - A value indicating whether the object's properties are required. - + The type. - + - Gets the object's properties. + Gets or sets the pattern. - The object's properties. + The pattern. - + - Gets the constructor parameters required for any non-default constructor + Gets or sets the minimum length. + The minimum length. - + - Gets or sets the override constructor used to create the object. - This is set when a constructor is marked up using the - JsonConstructor attribute. + Gets or sets the maximum length. - The override constructor. + The maximum length. - + - Gets or sets the parametrized constructor used to create the object. + Gets or sets a number that the value should be divisble by. - The parametrized constructor. + A number that the value should be divisble by. - + - Gets or sets the extension data setter. + Gets or sets the minimum. + The minimum. - + - Gets or sets the extension data getter. + Gets or sets the maximum. + The maximum. - + - Contract details for a used by the . + Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute. + A flag indicating whether the value can not equal the number defined by the "minimum" attribute. - + - Initializes a new instance of the class. + Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute. - The underlying type for the contract. + A flag indicating whether the value can not equal the number defined by the "maximum" attribute. - + - Maps a JSON property to a .NET member or constructor parameter. + Gets or sets the minimum number of items. + The minimum number of items. - + - Returns a that represents this instance. + Gets or sets the maximum number of items. - - A that represents this instance. - + The maximum number of items. - + - Gets or sets the name of the property. + Gets or sets the of items. - The name of the property. + The of items. - + - Gets or sets the type that declared this property. + Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . - The type that declared this property. + + true if items are validated using their array position; otherwise, false. + - + - Gets or sets the order of serialization and deserialization of a member. + Gets or sets the of additional items. - The numeric order of serialization or deserialization. + The of additional items. - + - Gets or sets the name of the underlying member or parameter. + Gets or sets a value indicating whether additional items are allowed. - The name of the underlying member or parameter. + + true if additional items are allowed; otherwise, false. + - + - Gets the that will get and set the during serialization. + Gets or sets whether the array items must be unique. - The that will get and set the during serialization. - + - Gets or sets the type of the property. + Gets or sets the of properties. - The type of the property. + The of properties. - + - Gets or sets the for the property. - If set this converter takes presidence over the contract converter for the property type. + Gets or sets the of additional properties. - The converter. + The of additional properties. - + - Gets the member converter. + Gets or sets the pattern properties. - The member converter. + The pattern properties. - + - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether additional properties are allowed. - true if ignored; otherwise, false. + + true if additional properties are allowed; otherwise, false. + - + - Gets a value indicating whether this is readable. + Gets or sets the required property if this property is present. - true if readable; otherwise, false. + The required property if this property is present. - + - Gets a value indicating whether this is writable. + Gets or sets the a collection of valid enum values allowed. - true if writable; otherwise, false. + A collection of valid enum values allowed. - + - Gets a value indicating whether this has a member attribute. + Gets or sets disallowed types. - true if has a member attribute; otherwise, false. + The disallow types. - + - Gets the default value. + Gets or sets the default value. The default value. - + - Gets a value indicating whether this is required. + Gets or sets the collection of that this schema extends. - A value indicating whether this is required. + The collection of that this schema extends. - + + + Gets or sets the format. + + The format. + + - Gets a value indicating whether this property preserves object references. + Generates a from a specified . - - true if this instance is reference; otherwise, false. - - + - Gets the property null value handling. + Generate a from the specified type. - The null value handling. + The type to generate a from. + A generated from the specified type. - + - Gets the property default value handling. + Generate a from the specified type. - The default value handling. + The type to generate a from. + The used to resolve schema references. + A generated from the specified type. - + - Gets the property reference loop handling. + Generate a from the specified type. - The reference loop handling. + The type to generate a from. + Specify whether the generated root will be nullable. + A generated from the specified type. - + - Gets the property object creation handling. + Generate a from the specified type. - The object creation handling. + The type to generate a from. + The used to resolve schema references. + Specify whether the generated root will be nullable. + A generated from the specified type. - + - Gets or sets the type name handling. + Gets or sets how undefined schemas are handled by the serializer. - The type name handling. - + - Gets or sets a predicate used to determine whether the property should be serialize. + Gets or sets the contract resolver. - A predicate used to determine whether the property should be serialize. + The contract resolver. - + - Gets or sets a predicate used to determine whether the property should be serialized. + The value types allowed by the . - A predicate used to determine whether the property should be serialized. - + - Gets or sets an action used to set whether the property has been deserialized. + No type specified. - An action used to set whether the property has been deserialized. - + - Gets or sets the converter used when serializing the property's collection items. + String type. - The collection's items converter. - + - Gets or sets whether this property's collection items are serialized as a reference. + Float type. - Whether this property's collection items are serialized as a reference. - + - Gets or sets the the type name handling used when serializing the property's collection items. + Integer type. - The collection's items type name handling. - + - Gets or sets the the reference loop handling used when serializing the property's collection items. + Boolean type. - The collection's items reference loop handling. - + - A collection of objects. + Object type. - + - Initializes a new instance of the class. + Array type. - The type. - + - When implemented in a derived class, extracts the key from the specified element. + Null type. - The element from which to extract the key. - The key for the specified element. - + - Adds a object. + Any type. - The property to add to the collection. - + - Gets the closest matching object. - First attempts to get an exact case match of propertyName and then - a case insensitive match. + Contract details for a used by the . - Name of the property. - A matching property if found. - + - Gets a property by property name. + Initializes a new instance of the class. - The name of the property to get. - Type property name string comparison. - A matching property if found. + The underlying type for the contract. - + - Contract details for a used by the . + Gets or sets the object member serialization. + The member object serialization. - + - Initializes a new instance of the class. + Gets or sets a value that indicates whether the object's properties are required. - The underlying type for the contract. + + A value indicating whether the object's properties are required. + - + - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. + Gets the object's properties. + The object's properties. - + - Initializes a new instance of the class. + Gets the constructor parameters required for any non-default constructor - + - Writes the specified trace level, message and optional exception. + Gets or sets the override constructor used to create the object. + This is set when a constructor is marked up using the + JsonConstructor attribute. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. + The override constructor. - + - Returns an enumeration of the most recent trace messages. + Gets or sets the parametrized constructor used to create the object. - An enumeration of the most recent trace messages. + The parametrized constructor. - + - Returns a of the most recent trace messages. + Gets or sets the extension data setter. - - A of the most recent trace messages. - - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Gets or sets the extension data getter. - - The that will be used to filter the trace messages passed to the writer. - - + - Represents a method that constructs an object. + Contract details for a used by the . - The object type to create. - + - When applied to a method, specifies that the method is called when an error occurs serializing an object. + Initializes a new instance of the class. + The underlying type for the contract. @@ -8095,25 +8101,42 @@ The target to get the value from. The value. - + - Specifies how strings are escaped when writing JSON text. + When applied to a method, specifies that the method is called when an error occurs serializing an object. - + - Only control characters (e.g. newline) are escaped. + Helper method for generating a MetaObject which calls a + specific method on Dynamic that returns a result - + - All non-ASCII and control characters (e.g. newline) are escaped. + Helper method for generating a MetaObject which calls a + specific method on Dynamic, but uses one of the arguments for + the result. - + - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. + Helper method for generating a MetaObject which calls a + specific method on Dynamic, but uses one of the arguments for + the result. + + + + + Returns a Restrictions object which includes our current restrictions merged + with a restriction limiting our type + + + + + Represents a method that constructs an object. + The object type to create. @@ -8145,32 +8168,6 @@ Include the .NET type name when the type of the object being serialized is not the same as its declared type. - - - Determines whether the collection is null or empty. - - The collection. - - true if the collection is null or empty; otherwise, false. - - - - - Adds the elements of the specified collection to the specified generic IList. - - The list to add to. - The collection of elements to add. - - - - Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer. - - The type of the elements of source. - A sequence in which to locate a value. - The object to locate in the sequence - An equality comparer to compare values. - The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1. - Converts the value to the specified type. @@ -8205,44 +8202,144 @@ is returned if assignable to the target type. - + - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result + Gets a dictionary of the names and values of an Enum type. + - + - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. + Gets a dictionary of the names and values of an Enum type. + The enum type to get names and values for. + - + - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. + Specifies the type of Json token. - + - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type + This is returned by the if a method has not been called. - + - Gets a dictionary of the names and values of an Enum type. + An object start token. - - + - Gets a dictionary of the names and values of an Enum type. + An array start token. - The enum type to get names and values for. - + + + + A constructor start token. + + + + + An object property name. + + + + + A comment. + + + + + Raw JSON. + + + + + An integer. + + + + + A float. + + + + + A string. + + + + + A boolean. + + + + + A null token. + + + + + An undefined token. + + + + + An object end token. + + + + + An array end token. + + + + + A constructor end token. + + + + + A Date. + + + + + Byte data. + + + + + Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. + + + + + Determines whether the collection is null or empty. + + The collection. + + true if the collection is null or empty; otherwise, false. + + + + + Adds the elements of the specified collection to the specified generic IList. + + The list to add to. + The collection of elements to add. + + + + Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer. + + The type of the elements of source. + A sequence in which to locate a value. + The object to locate in the sequence + An equality comparer to compare values. + The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1. @@ -8313,11 +8410,6 @@ true if the specified MemberInfo can be set; otherwise, false. - - - Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. - - Determines whether the string is all white space. Empty string will return false. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.dll new file mode 100644 index 00000000000..a957fda6f9d Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.xml index a324ed365db..4718b16d691 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/net40/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/net45/Newtonsoft.Json.xml @@ -4,6 +4,23 @@ Newtonsoft.Json + + + Represents a BSON Oid (object id). + + + + + Initializes a new instance of the class. + + The Oid value. + + + + Gets or sets the value of the Oid. + + The value of the Oid. + Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. @@ -116,6 +133,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1011,22 +1037,20 @@ The used when writing values to BSON. - + - Represents a BSON Oid (object id). + Specifies how constructors are used when initializing objects during deserialization by the . - + - Initializes a new instance of the class. + First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor. - The Oid value. - + - Gets or sets the value of the Oid. + Json.NET will use a non-public default constructor before falling back to a paramatized constructor. - The value of the Oid. @@ -1110,12 +1134,12 @@ true if this instance can convert the specified object type; otherwise, false. - + - Converts a to and from JSON. + Converts a to and from JSON and BSON. - + Writes the JSON representation of the object. @@ -1123,7 +1147,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1133,21 +1157,22 @@ The calling serializer. The object value. - + - Determines whether this instance can convert the specified value type. + Determines whether this instance can convert the specified object type. - Type of the value. + Type of the object. - true if this instance can convert the specified value type; otherwise, false. + true if this instance can convert the specified object type; otherwise, false. - + - Converts a to and from JSON. + Create a custom object + The object type to convert. - + Writes the JSON representation of the object. @@ -1155,7 +1180,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1165,7 +1190,54 @@ The calling serializer. The object value. - + + + Creates an object which will then be populated by the serializer. + + Type of the object. + The created object. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Gets a value indicating whether this can write JSON. + + + true if this can write JSON; otherwise, false. + + + + + Converts a to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + Determines whether this instance can convert the specified value type. @@ -1174,13 +1246,12 @@ true if this instance can convert the specified value type; otherwise, false. - + - Create a custom object + Converts a to and from JSON. - The object type to convert. - + Writes the JSON representation of the object. @@ -1188,7 +1259,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1198,14 +1269,21 @@ The calling serializer. The object value. - + - Creates an object which will then be populated by the serializer. + Determines whether this instance can convert the specified value type. - Type of the object. - The created object. + Type of the value. + + true if this instance can convert the specified value type; otherwise, false. + - + + + Provides a base class for converting a to and from JSON. + + + Determines whether this instance can convert the specified object type. @@ -1214,20 +1292,30 @@ true if this instance can convert the specified object type; otherwise, false. - + - Gets a value indicating whether this can write JSON. + Converts a F# discriminated union type to and from JSON. - - true if this can write JSON; otherwise, false. - - + - Provides a base class for converting a to and from JSON. + Writes the JSON representation of the object. + The to write to. + The value. + The calling serializer. - + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + Determines whether this instance can convert the specified object type. @@ -1308,12 +1396,12 @@ true if this can write JSON; otherwise, false. - + - Converts a to and from JSON. + Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). - + Writes the JSON representation of the object. @@ -1321,7 +1409,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1331,21 +1419,53 @@ The calling serializer. The object value. - + - Determines whether this instance can convert the specified object type. + Gets or sets the date time styles used when converting a date to and from JSON. + + The date time styles used when converting a date to and from JSON. + + + + Gets or sets the date time format used when converting a date to and from JSON. + + The date time format used when converting a date to and from JSON. + + + + Gets or sets the culture used when converting a date to and from JSON. + + The culture used when converting a date to and from JSON. + + + + Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)). + + + + + Writes the JSON representation of the object. + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - + The existing property value of the JSON that is being converted. + The calling serializer. + The object value. - + - Converts a to and from JSON and BSON. + Converts a to and from JSON. - + Writes the JSON representation of the object. @@ -1353,7 +1473,7 @@ The value. The calling serializer. - + Reads the JSON representation of the object. @@ -1363,7 +1483,7 @@ The calling serializer. The object value. - + Determines whether this instance can convert the specified object type. @@ -1409,6 +1529,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1442,20 +1567,11 @@ true if the written enum text will be camel case; otherwise, false. - - - Specifies how constructors are used when initializing objects during deserialization by the . - - - - - First attempt to use the public default constructor, then fall back to single paramatized constructor, then the non-public default constructor. - - - + - Json.NET will use a non-public default constructor before falling back to a paramatized constructor. + Gets or sets a value indicating whether integer values are allowed. + true if integers are allowed; otherwise, false. @@ -1489,27 +1605,64 @@ true if this instance can convert the specified object type; otherwise, false. - + - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . + Converts XML to and from JSON. - + - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". + Writes the JSON representation of the object. + The to write to. + The calling serializer. + The value. - + - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. + Reads the JSON representation of the object. + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. - + - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. + Checks if the attributeName is a namespace attribute. + + Attribute name to test. + The attribute name prefix if it has one, otherwise an empty string. + True if attribute name is for a namespace attribute, otherwise false. + + + + Determines whether this instance can convert the specified value type. + + Type of the value. + + true if this instance can convert the specified value type; otherwise, false. + + + + + Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. + + The name of the deserialize root element. + + + + Gets or sets a flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + true if the array attibute is written to the XML; otherwise, false. + + + + Gets or sets a value indicating whether to write the root JSON object. + true if the JSON root object is omitted; otherwise, false. @@ -1526,2174 +1679,2123 @@ Floating point numbers are parsed to . - - - Instructs the how to serialize the collection. - - - + - Instructs the how to serialize the object. + Specifies how dates are formatted when writing JSON text. - + - Initializes a new instance of the class. + Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". - + - Initializes a new instance of the class with the specified container Id. + Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". - The container Id. - + - Gets or sets the id. + Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. - The id. - + - Gets or sets the title. + Date formatted strings are not parsed to a date type and are read as strings. - The title. - + - Gets or sets the description. + Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - The description. - + - Gets the collection's items converter. + Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . - The collection's items converter. - + - Gets or sets a value that indicates whether to preserve object references. + Specifies how to treat the time value when converting between string and . - - true to keep object reference; otherwise, false. The default is false. - - + - Gets or sets a value that indicates whether to preserve collection's items references. + Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. - - true to keep collection's items object references; otherwise, false. The default is false. - - + - Gets or sets the reference loop handling used when serializing the collection's items. + Treat as a UTC. If the object represents a local time, it is converted to a UTC. - The reference loop handling. - + - Gets or sets the type name handling used when serializing the collection's items. + Treat as a local time if a is being converted to a string. + If a string is being converted to , convert to a local time if a time zone is specified. - The type name handling. - + - Initializes a new instance of the class. + Time zone information should be preserved when converting. - + - Initializes a new instance of the class with the specified container Id. + Specifies default value handling options for the . - The container Id. + + + + - + - The exception thrown when an error occurs during Json serialization or deserialization. + Include members where the member value is the same as the member's default value when serializing objects. + Included members are written to JSON. Has no effect when deserializing. - + - Initializes a new instance of the class. + Ignore members where the member value is the same as the member's default value when serializing objects + so that is is not written to JSON. + This option will ignore all default values (e.g. null for objects and nullable typesl; 0 for integers, + decimals and floating point numbers; and false for booleans). The default value ignored can be changed by + placing the on the property. - + - Initializes a new instance of the class - with a specified error message. + Members with a default value but no JSON will be set to their default value when deserializing. - The error message that explains the reason for the exception. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Ignore members where the member value is the same as the member's default value when serializing objects + and sets members to their default value when deserializing. - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Initializes a new instance of the class. + Specifies float format handling options when writing special floating point numbers, e.g. , + and with . - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). - + - Specifies how dates are formatted when writing JSON text. + Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - + - Dates are written in the ISO 8601 format, e.g. "2012-03-21T05:40Z". + Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. + Note that this will produce non-valid JSON. - + - Dates are written in the Microsoft JSON format, e.g. "\/Date(1198908717056)\/". + Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. - + - Specifies how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON text. + Specifies formatting options for the . - + - Date formatted strings are not parsed to a date type and are read as strings. + No special formatting is applied. This is the default. - + - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . + Causes child objects to be indented according to the and settings. - + - Date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed to . + Provides an interface to enable a class to return line and position information. - + - Specifies how to treat the time value when converting between string and . + Gets a value indicating whether the class can return line information. + + true if LineNumber and LinePosition can be provided; otherwise, false. + - + - Treat as local time. If the object represents a Coordinated Universal Time (UTC), it is converted to the local time. + Gets the current line number. + The current line number or 0 if no line information is available (for example, HasLineInfo returns false). - + - Treat as a UTC. If the object represents a local time, it is converted to a UTC. + Gets the current line position. + The current line position or 0 if no line information is available (for example, HasLineInfo returns false). - + - Treat as a local time if a is being converted to a string. - If a string is being converted to , convert to a local time if a time zone is specified. + Instructs the how to serialize the collection. - + - Time zone information should be preserved when converting. + Instructs the how to serialize the object. - + - Specifies formatting options for the . + Initializes a new instance of the class. - + - No special formatting is applied. This is the default. + Initializes a new instance of the class with the specified container Id. + The container Id. - + - Causes child objects to be indented according to the and settings. + Gets or sets the id. + The id. - + - Instructs the to use the specified constructor when deserializing that object. + Gets or sets the title. + The title. - + - Instructs the to deserialize properties with no matching class member into the specified collection - and write values during serialization. + Gets or sets the description. + The description. - + - Initializes a new instance of the class. + Gets the collection's items converter. + The collection's items converter. - + - Gets or sets a value that indicates whether to write extension data when serializing the object. + Gets or sets a value that indicates whether to preserve object references. - true to write extension data when serializing the object; otherwise, false. The default is true. + true to keep object reference; otherwise, false. The default is false. - + - Gets or sets a value that indicates whether to read extension data when deserializing the object. + Gets or sets a value that indicates whether to preserve collection's items references. - true to read extension data when deserializing the object; otherwise, false. The default is true. + true to keep collection's items object references; otherwise, false. The default is false. - + - Represents a trace writer that writes to the application's instances. + Gets or sets the reference loop handling used when serializing the collection's items. + The reference loop handling. - + - Represents a trace writer. + Gets or sets the type name handling used when serializing the collection's items. + The type name handling. - + - Writes the specified trace level, message and optional exception. + Initializes a new instance of the class. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Initializes a new instance of the class with a flag indicating whether the array can contain null items - The that will be used to filter the trace messages passed to the writer. + A flag indicating whether the array can contain null items. - + - Writes the specified trace level, message and optional exception. + Initializes a new instance of the class with the specified container Id. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. + The container Id. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Gets or sets a value indicating whether null items are allowed in the collection. - - The that will be used to filter the trace messages passed to the writer. - + true if null items are allowed in the collection; otherwise, false. - + - Get and set values for a using dynamic methods. + Instructs the to use the specified constructor when deserializing that object. - + - Provides methods to get and set values. + Provides methods for converting between common language runtime types and JSON types. + + + - + - Sets the value. + Represents JavaScript's boolean value true as a string. This field is read-only. - The target to set the value on. - The value to set on the target. - + - Gets the value. + Represents JavaScript's boolean value false as a string. This field is read-only. - The target to get the value from. - The value. - + - Initializes a new instance of the class. + Represents JavaScript's null as a string. This field is read-only. - The member info. - + - Sets the value. + Represents JavaScript's undefined as a string. This field is read-only. - The target to set the value on. - The value to set on the target. - + - Gets the value. + Represents JavaScript's positive infinity as a string. This field is read-only. - The target to get the value from. - The value. - + - Contract details for a used by the . + Represents JavaScript's negative infinity as a string. This field is read-only. - + - Contract details for a used by the . + Represents JavaScript's NaN as a string. This field is read-only. - + - Gets the underlying type for the contract. + Converts the to its JSON string representation. - The underlying type for the contract. + The value to convert. + A JSON string representation of the . - + - Gets or sets the type created during deserialization. + Converts the to its JSON string representation using the specified. - The type created during deserialization. + The value to convert. + The format the date will be converted to. + The time zone handling when the date is converted to a string. + A JSON string representation of the . - + - Gets or sets whether this type contract is serialized as a reference. + Converts the to its JSON string representation. - Whether this type contract is serialized as a reference. + The value to convert. + A JSON string representation of the . - + - Gets or sets the default for this contract. + Converts the to its JSON string representation using the specified. - The converter. + The value to convert. + The format the date will be converted to. + A JSON string representation of the . - + - Gets or sets all methods called immediately after deserialization of the object. + Converts the to its JSON string representation. - The methods called immediately after deserialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets all methods called during deserialization of the object. + Converts the to its JSON string representation. - The methods called during deserialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets all methods called after serialization of the object graph. + Converts the to its JSON string representation. - The methods called after serialization of the object graph. + The value to convert. + A JSON string representation of the . - + - Gets or sets all methods called before serialization of the object. + Converts the to its JSON string representation. - The methods called before serialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets all method called when an error is thrown during the serialization of the object. + Converts the to its JSON string representation. - The methods called when an error is thrown during the serialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets the method called immediately after deserialization of the object. + Converts the to its JSON string representation. - The method called immediately after deserialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets the method called during deserialization of the object. + Converts the to its JSON string representation. - The method called during deserialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets the method called after serialization of the object graph. + Converts the to its JSON string representation. - The method called after serialization of the object graph. + The value to convert. + A JSON string representation of the . - + - Gets or sets the method called before serialization of the object. + Converts the to its JSON string representation. - The method called before serialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets the method called when an error is thrown during the serialization of the object. + Converts the to its JSON string representation. - The method called when an error is thrown during the serialization of the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets the default creator method used to create the object. + Converts the to its JSON string representation. - The default creator method used to create the object. + The value to convert. + A JSON string representation of the . - + - Gets or sets a value indicating whether the default creator is non public. + Converts the to its JSON string representation. - true if the default object creator is non-public; otherwise, false. + The value to convert. + A JSON string representation of the . - + - Initializes a new instance of the class. + Converts the to its JSON string representation. - The underlying type for the contract. + The value to convert. + A JSON string representation of the . - + - Gets or sets the default collection items . + Converts the to its JSON string representation. - The converter. + The value to convert. + A JSON string representation of the . - + - Gets or sets a value indicating whether the collection items preserve object references. + Converts the to its JSON string representation. - true if collection items preserve object references; otherwise, false. + The value to convert. + A JSON string representation of the . - + - Gets or sets the collection item reference loop handling. + Converts the to its JSON string representation. - The reference loop handling. + The value to convert. + A JSON string representation of the . - + - Gets or sets the collection item type name handling. + Converts the to its JSON string representation. - The type name handling. + The value to convert. + A JSON string representation of the . - + - Represents a trace writer that writes to memory. When the trace message limit is - reached then old trace messages will be removed as new messages are added. + Converts the to its JSON string representation. + The value to convert. + A JSON string representation of the . - + - Initializes a new instance of the class. + Converts the to its JSON string representation. + The value to convert. + The string delimiter character. + A JSON string representation of the . - + - Writes the specified trace level, message and optional exception. + Converts the to its JSON string representation. - The at which to write this trace. - The trace message. - The trace exception. This parameter is optional. + The value to convert. + A JSON string representation of the . - + - Returns an enumeration of the most recent trace messages. + Serializes the specified object to a JSON string. - An enumeration of the most recent trace messages. - - + The object to serialize. + A JSON string representation of the object. + + - Returns a of the most recent trace messages. + Serializes the specified object to a JSON string using formatting. + The object to serialize. + Indicates how the output is formatted. - A of the most recent trace messages. + A JSON string representation of the object. - + - Gets the that will be used to filter the trace messages passed to the writer. - For example a filter level of Info will exclude Verbose messages and include Info, - Warning and Error messages. + Serializes the specified object to a JSON string using a collection of . - - The that will be used to filter the trace messages passed to the writer. - + The object to serialize. + A collection converters used while serializing. + A JSON string representation of the object. - + - Provides an interface to enable a class to return line and position information. + Serializes the specified object to a JSON string using formatting and a collection of . + The object to serialize. + Indicates how the output is formatted. + A collection converters used while serializing. + A JSON string representation of the object. - + - Gets a value indicating whether the class can return line information. + Serializes the specified object to a JSON string using . + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. - true if LineNumber and LinePosition can be provided; otherwise, false. + A JSON string representation of the object. - + - Gets the current line number. + Serializes the specified object to a JSON string using a type, formatting and . - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + - + - Gets the current line position. + Serializes the specified object to a JSON string using formatting and . - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + A JSON string representation of the object. + - + - Specifies how strings are escaped when writing JSON text. + Serializes the specified object to a JSON string using a type, formatting and . + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + - + - Only control characters (e.g. newline) are escaped. + Asynchronously serializes the specified object to a JSON string. + Serialization will happen on a new thread. + The object to serialize. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - All non-ASCII and control characters (e.g. newline) are escaped. + Asynchronously serializes the specified object to a JSON string using formatting. + Serialization will happen on a new thread. + The object to serialize. + Indicates how the output is formatted. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. + Asynchronously serializes the specified object to a JSON string using formatting and a collection of . + Serialization will happen on a new thread. + The object to serialize. + Indicates how the output is formatted. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. + - + - Represents a raw JSON string. + Deserializes the JSON to a .NET object. + The JSON to deserialize. + The deserialized object from the Json string. - + - Represents a value in JSON (string, integer, date, etc). + Deserializes the JSON to a .NET object using . + The JSON to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Represents an abstract JSON token. + Deserializes the JSON to the specified .NET type. + The JSON to deserialize. + The of object being deserialized. + The deserialized object from the Json string. - + - Represents a collection of objects. + Deserializes the JSON to the specified .NET type. - The type of token + The type of the object to deserialize to. + The JSON to deserialize. + The deserialized object from the Json string. - + - Gets the with the specified key. + Deserializes the JSON to the given anonymous type. - + + The anonymous type to deserialize to. This can't be specified + traditionally and must be infered from the anonymous type passed + as a parameter. + + The JSON to deserialize. + The anonymous type object. + The deserialized anonymous type from the JSON string. - + - Compares the values of two tokens, including the values of all descendant tokens. + Deserializes the JSON to the given anonymous type using . - The first to compare. - The second to compare. - true if the tokens are equal; otherwise false. + + The anonymous type to deserialize to. This can't be specified + traditionally and must be infered from the anonymous type passed + as a parameter. + + The JSON to deserialize. + The anonymous type object. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized anonymous type from the JSON string. - + - Adds the specified content immediately after this token. + Deserializes the JSON to the specified .NET type using a collection of . - A content object that contains simple content or a collection of content objects to be added after this token. + The type of the object to deserialize to. + The JSON to deserialize. + Converters to use while deserializing. + The deserialized object from the JSON string. - + - Adds the specified content immediately before this token. + Deserializes the JSON to the specified .NET type using . - A content object that contains simple content or a collection of content objects to be added before this token. + The type of the object to deserialize to. + The object to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Returns a collection of the ancestor tokens of this token. + Deserializes the JSON to the specified .NET type using a collection of . - A collection of the ancestor tokens of this token. + The JSON to deserialize. + The type of the object to deserialize. + Converters to use while deserializing. + The deserialized object from the JSON string. - + - Returns a collection of the sibling tokens after this token, in document order. + Deserializes the JSON to the specified .NET type using . - A collection of the sibling tokens after this tokens, in document order. + The JSON to deserialize. + The type of the object to deserialize to. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + The deserialized object from the JSON string. - + - Returns a collection of the sibling tokens before this token, in document order. + Asynchronously deserializes the JSON to the specified .NET type. + Deserialization will happen on a new thread. - A collection of the sibling tokens before this token, in document order. + The type of the object to deserialize to. + The JSON to deserialize. + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Gets the with the specified key converted to the specified type. + Asynchronously deserializes the JSON to the specified .NET type using . + Deserialization will happen on a new thread. - The type to convert the token to. - The token key. - The converted token value. + The type of the object to deserialize to. + The JSON to deserialize. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Returns a collection of the child tokens of this token, in document order. + Asynchronously deserializes the JSON to the specified .NET type. + Deserialization will happen on a new thread. - An of containing the child tokens of this , in document order. - - - - Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - - The type to filter the child tokens on. - A containing the child tokens of this , in document order. + The JSON to deserialize. + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Returns a collection of the child values of this token, in document order. + Asynchronously deserializes the JSON to the specified .NET type using . + Deserialization will happen on a new thread. - The type to convert the values to. - A containing the child values of this , in document order. + The JSON to deserialize. + The type of the object to deserialize to. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + + A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + - + - Removes this token from its parent. + Populates the object with values from the JSON string. + The JSON to populate values from. + The target object to populate values onto. - + - Replaces this token with the specified token. + Populates the object with values from the JSON string using . - The value. + The JSON to populate values from. + The target object to populate values onto. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + - + - Writes this token to a . + Asynchronously populates the object with values from the JSON string using . - A into which this method will write. - A collection of which will be used when writing the token. + The JSON to populate values from. + The target object to populate values onto. + + The used to deserialize the object. + If this is null, default serialization settings will be is used. + + + A task that represents the asynchronous populate operation. + - + - Returns the indented JSON for this token. + Serializes the XML node to a JSON string. - - The indented JSON for this token. - + The node to serialize. + A JSON string of the XmlNode. - + - Returns the JSON for this token using the given formatting and converters. + Serializes the XML node to a JSON string using formatting. + The node to serialize. Indicates how the output is formatted. - A collection of which will be used when writing the token. - The JSON for this token using the given formatting and converters. + A JSON string of the XmlNode. - + - Performs an explicit conversion from to . + Serializes the XML node to a JSON string using formatting and omits the root object if is true. - The value. - The result of the conversion. + The node to serialize. + Indicates how the output is formatted. + Omits writing the root object. + A JSON string of the XmlNode. - + - Performs an explicit conversion from to . + Deserializes the XmlNode from a JSON string. - The value. - The result of the conversion. + The JSON string. + The deserialized XmlNode - + - Performs an explicit conversion from to . + Deserializes the XmlNode from a JSON string nested in a root elment specified by . - The value. - The result of the conversion. + The JSON string. + The name of the root element to append when deserializing. + The deserialized XmlNode - + - Performs an explicit conversion from to . + Deserializes the XmlNode from a JSON string nested in a root elment specified by + and writes a .NET array attribute for collections. - The value. - The result of the conversion. + The JSON string. + The name of the root element to append when deserializing. + + A flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + The deserialized XmlNode - + - Performs an explicit conversion from to . + Serializes the to a JSON string. - The value. - The result of the conversion. + The node to convert to JSON. + A JSON string of the XNode. - + - Performs an explicit conversion from to . + Serializes the to a JSON string using formatting. - The value. - The result of the conversion. + The node to convert to JSON. + Indicates how the output is formatted. + A JSON string of the XNode. - + - Performs an explicit conversion from to . + Serializes the to a JSON string using formatting and omits the root object if is true. - The value. - The result of the conversion. + The node to serialize. + Indicates how the output is formatted. + Omits writing the root object. + A JSON string of the XNode. - + - Performs an explicit conversion from to . + Deserializes the from a JSON string. - The value. - The result of the conversion. + The JSON string. + The deserialized XNode - + - Performs an explicit conversion from to . + Deserializes the from a JSON string nested in a root elment specified by . - The value. - The result of the conversion. + The JSON string. + The name of the root element to append when deserializing. + The deserialized XNode - + - Performs an explicit conversion from to . + Deserializes the from a JSON string nested in a root elment specified by + and writes a .NET array attribute for collections. - The value. - The result of the conversion. + The JSON string. + The name of the root element to append when deserializing. + + A flag to indicate whether to write the Json.NET array attribute. + This attribute helps preserve arrays when converting the written XML back to JSON. + + The deserialized XNode - + - Performs an explicit conversion from to . + Gets or sets a function that creates default . + Default settings are automatically used by serialization methods on , + and and on . + To serialize without using any default settings create a with + . - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Instructs the to use the specified when serializing the member or class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. + Type of the converter. - + - Performs an explicit conversion from to . + Gets the type of the converter. - The value. - The result of the conversion. + The type of the converter. - + - Performs an explicit conversion from to . + Represents a collection of . - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Instructs the how to serialize the collection. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class with the specified container Id. - The value. - The result of the conversion. + The container Id. - + - Performs an explicit conversion from to . + The exception thrown when an error occurs during Json serialization or deserialization. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class + with a specified error message. - The value. - The result of the conversion. + The error message that explains the reason for the exception. - + - Performs an explicit conversion from to . + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - The value. - The result of the conversion. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Performs an explicit conversion from to . + Instructs the to deserialize properties with no matching class member into the specified collection + and write values during serialization. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Gets or sets a value that indicates whether to write extension data when serializing the object. - The value. - The result of the conversion. + + true to write extension data when serializing the object; otherwise, false. The default is true. + - + - Performs an explicit conversion from to . + Gets or sets a value that indicates whether to read extension data when deserializing the object. - The value. - The result of the conversion. + + true to read extension data when deserializing the object; otherwise, false. The default is true. + - + - Performs an explicit conversion from to . + Instructs the not to serialize the public field or public read/write property value. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Instructs the how to serialize the object. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class with the specified member serialization. - The value. - The result of the conversion. + The member serialization. - + - Performs an explicit conversion from to . + Initializes a new instance of the class with the specified container Id. - The value. - The result of the conversion. + The container Id. - + - Performs an explicit conversion from to . + Gets or sets the member serialization. - The value. - The result of the conversion. + The member serialization. - + - Performs an explicit conversion from to . + Gets or sets a value that indicates whether the object's properties are required. - The value. - The result of the conversion. + + A value indicating whether the object's properties are required. + - + - Performs an explicit conversion from to . + Instructs the to always serialize the member with the specified name. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class. - The value. - The result of the conversion. - + - Performs an explicit conversion from to . + Initializes a new instance of the class with the specified name. - The value. - The result of the conversion. + Name of the property. - + - Performs an implicit conversion from to . + Gets or sets the converter used when serializing the property's collection items. - The value to create a from. - The initialized with the specified value. + The collection's items converter. - + - Performs an implicit conversion from to . + Gets or sets the null value handling used when serializing this property. - The value to create a from. - The initialized with the specified value. + The null value handling. - + - Performs an implicit conversion from to . + Gets or sets the default value handling used when serializing this property. - The value to create a from. - The initialized with the specified value. + The default value handling. - + - Performs an implicit conversion from to . + Gets or sets the reference loop handling used when serializing this property. - The value to create a from. - The initialized with the specified value. + The reference loop handling. - + - Performs an implicit conversion from to . + Gets or sets the object creation handling used when deserializing this property. - The value to create a from. - The initialized with the specified value. + The object creation handling. - + - Performs an implicit conversion from to . + Gets or sets the type name handling used when serializing this property. - The value to create a from. - The initialized with the specified value. + The type name handling. - + - Performs an implicit conversion from to . + Gets or sets whether this property's value is serialized as a reference. - The value to create a from. - The initialized with the specified value. + Whether this property's value is serialized as a reference. - + - Performs an implicit conversion from to . + Gets or sets the order of serialization and deserialization of a member. - The value to create a from. - The initialized with the specified value. + The numeric order of serialization or deserialization. - + - Performs an implicit conversion from to . + Gets or sets a value indicating whether this property is required. - The value to create a from. - The initialized with the specified value. + + A value indicating whether this property is required. + - + - Performs an implicit conversion from to . + Gets or sets the name of the property. - The value to create a from. - The initialized with the specified value. + The name of the property. - + - Performs an implicit conversion from to . + Gets or sets the the reference loop handling used when serializing the property's collection items. - The value to create a from. - The initialized with the specified value. + The collection's items reference loop handling. - + - Performs an implicit conversion from to . + Gets or sets the the type name handling used when serializing the property's collection items. - The value to create a from. - The initialized with the specified value. + The collection's items type name handling. - + - Performs an implicit conversion from to . + Gets or sets whether this property's collection items are serialized as a reference. - The value to create a from. - The initialized with the specified value. + Whether this property's collection items are serialized as a reference. - + - Performs an implicit conversion from to . + The exception thrown when an error occurs while reading Json text. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Performs an implicit conversion from to . + Gets the line number indicating where the error occurred. - The value to create a from. - The initialized with the specified value. + The line number indicating where the error occurred. - + - Performs an implicit conversion from to . + Gets the line position indicating where the error occurred. - The value to create a from. - The initialized with the specified value. + The line position indicating where the error occurred. - + - Performs an implicit conversion from to . + Gets the path to the JSON where the error occurred. - The value to create a from. - The initialized with the specified value. + The path to the JSON where the error occurred. - + - Performs an implicit conversion from to . + The exception thrown when an error occurs during Json serialization or deserialization. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. - + - Performs an implicit conversion from to . + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. - The value to create a from. - The initialized with the specified value. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Performs an implicit conversion from to . + Serializes and deserializes objects into and from the JSON format. + The enables you to control how objects are encoded into JSON. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Initializes a new instance of the class. - The value to create a from. - The initialized with the specified value. - + - Performs an implicit conversion from to . + Creates a new instance. + The will not use default settings. - The value to create a from. - The initialized with the specified value. + + A new instance. + The will not use default settings. + - + - Performs an implicit conversion from to . + Creates a new instance using the specified . + The will not use default settings. - The value to create a from. - The initialized with the specified value. + The settings to be applied to the . + + A new instance using the specified . + The will not use default settings. + - + - Performs an implicit conversion from to . + Creates a new instance. + The will use default settings. - The value to create a from. - The initialized with the specified value. + + A new instance. + The will use default settings. + - + - Performs an implicit conversion from to . + Creates a new instance using the specified . + The will use default settings. - The value to create a from. - The initialized with the specified value. + The settings to be applied to the . + + A new instance using the specified . + The will use default settings. + - + - Performs an implicit conversion from to . + Populates the JSON values onto the target object. - The value to create a from. - The initialized with the specified value. + The that contains the JSON structure to reader values from. + The target object to populate values onto. - + - Performs an implicit conversion from to . + Populates the JSON values onto the target object. - The value to create a from. - The initialized with the specified value. + The that contains the JSON structure to reader values from. + The target object to populate values onto. - + - Performs an implicit conversion from to . + Deserializes the Json structure contained by the specified . - The value to create a from. - The initialized with the specified value. + The that contains the JSON structure to deserialize. + The being deserialized. - + - Creates an for this token. + Deserializes the Json structure contained by the specified + into an instance of the specified type. - An that can be used to read this token and its descendants. + The containing the object. + The of object being deserialized. + The instance of being deserialized. - + - Creates a from an object. + Deserializes the Json structure contained by the specified + into an instance of the specified type. - The object that will be used to create . - A with the value of the specified object + The containing the object. + The type of the object to deserialize. + The instance of being deserialized. - + - Creates a from an object using the specified . + Deserializes the Json structure contained by the specified + into an instance of the specified type. - The object that will be used to create . - The that will be used when reading the object. - A with the value of the specified object + The containing the object. + The of object being deserialized. + The instance of being deserialized. - + - Creates the specified .NET type from the . + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object type that the token will be deserialized to. - The new object created from the JSON value. + The used to write the Json structure. + The to serialize. - + - Creates the specified .NET type from the . + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object type that the token will be deserialized to. - The new object created from the JSON value. + The used to write the Json structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + - + - Creates the specified .NET type from the using the specified . + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. + The used to write the Json structure. + The to serialize. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + - + - Creates the specified .NET type from the using the specified . + Serializes the specified and writes the Json structure + to a Stream using the specified . - The object type that the token will be deserialized to. - The that will be used when creating the object. - The new object created from the JSON value. + The used to write the Json structure. + The to serialize. - + - Creates a from a . + Occurs when the errors during serialization and deserialization. - An positioned at the token to read into this . - - An that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - + - Load a from a string that contains JSON. + Gets or sets the used by the serializer when resolving references. - A that contains JSON. - A populated from the string that contains JSON. - + - Creates a from a . + Gets or sets the used by the serializer when resolving type names. - An positioned at the token to read into this . - - An that contains the token and its descendant tokens - that were read from the reader. The runtime type of the token is determined - by the token type of the first token encountered in the reader. - - + - Selects the token that matches the object path. + Gets or sets the used by the serializer when writing trace messages. - - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. - - The that matches the object path or a null reference if no matching token is found. + The trace writer. - + - Selects the token that matches the object path. + Gets or sets how type name writing and reading is handled by the serializer. - - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. - - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. - + - Returns the responsible for binding operations performed on this object. + Gets or sets how a type name assembly is written and resolved by the serializer. - The expression tree representation of the runtime value. - - The to bind this object. - + The type name assembly format. - + - Returns the responsible for binding operations performed on this object. + Gets or sets how object references are preserved by the serializer. - The expression tree representation of the runtime value. - - The to bind this object. - - + - Creates a new instance of the . All child tokens are recursively cloned. + Get or set how reference loops (e.g. a class referencing itself) is handled. - A new instance of the . - + - Gets a comparer that can compare two tokens for value equality. + Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - A that can compare two nodes for value equality. - + - Gets or sets the parent. + Get or set how null values are handled during serialization and deserialization. - The parent. - + - Gets the root of this . + Get or set how null default are handled during serialization and deserialization. - The root of this . - + - Gets the node type for this . + Gets or sets how objects are created during deserialization. - The type. + The object creation handling. - + - Gets a value indicating whether this token has child tokens. + Gets or sets how constructors are used during deserialization. - - true if this token has child values; otherwise, false. - + The constructor handling. - + - Gets the next sibling token of this node. + Gets a collection that will be used during serialization. - The that contains the next sibling token. + Collection that will be used during serialization. - + - Gets the previous sibling token of this node. + Gets or sets the contract resolver used by the serializer when + serializing .NET objects to JSON and vice versa. - The that contains the previous sibling token. - + - Gets the path of the JSON token. + Gets or sets the used by the serializer when invoking serialization callback methods. + The context. - + - Gets the with the specified key. + Indicates how JSON text output is formatted. - The with the specified key. - + - Get the first child token of this token. + Get or set how dates are written to JSON text. - A containing the first child token of the . - + - Get the last child token of this token. + Get or set how time zones are handling during serialization and deserialization. - A containing the last child token of the . - + - Initializes a new instance of the class from another object. + Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - A object to copy from. - + - Initializes a new instance of the class with the given value. + Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - The value. - + - Initializes a new instance of the class with the given value. + Get or set how special floating point numbers, e.g. , + and , + are written as JSON text. - The value. - + - Initializes a new instance of the class with the given value. + Get or set how strings are escaped when writing JSON text. - The value. - + - Initializes a new instance of the class with the given value. + Get or set how and values are formatting when writing JSON text. - The value. - + - Initializes a new instance of the class with the given value. + Gets or sets the culture used when reading JSON. Defaults to . - The value. - + - Initializes a new instance of the class with the given value. + Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - The value. - + - Initializes a new instance of the class with the given value. + Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. - The value. + + true if there will be a check for additional JSON content after deserializing an object; otherwise, false. + - + - Initializes a new instance of the class with the given value. + Specifies the settings on a object. - The value. - + - Initializes a new instance of the class with the given value. + Initializes a new instance of the class. - The value. - + - Initializes a new instance of the class with the given value. + Gets or sets how reference loops (e.g. a class referencing itself) is handled. - The value. + Reference loop handling. - + - Initializes a new instance of the class with the given value. + Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. - The value. + Missing member handling. - + - Initializes a new instance of the class with the given value. + Gets or sets how objects are created during deserialization. - The value. + The object creation handling. - + - Creates a comment with the given value. + Gets or sets how null values are handled during serialization and deserialization. - The value. - A comment with the given value. + Null value handling. - + - Creates a string with the given value. + Gets or sets how null default are handled during serialization and deserialization. - The value. - A string with the given value. + The default value handling. - + - Writes this token to a . + Gets or sets a collection that will be used during serialization. - A into which this method will write. - A collection of which will be used when writing the token. + The converters. - + - Indicates whether the current object is equal to another object of the same type. + Gets or sets how object references are preserved by the serializer. - - true if the current object is equal to the parameter; otherwise, false. - - An object to compare with this object. + The preserve references handling. - + - Determines whether the specified is equal to the current . + Gets or sets how type name writing and reading is handled by the serializer. - The to compare with the current . - - true if the specified is equal to the current ; otherwise, false. - - - The parameter is null. - + The type name handling. - + - Serves as a hash function for a particular type. + Gets or sets how a type name assembly is written and resolved by the serializer. - - A hash code for the current . - + The type name assembly format. - + - Returns a that represents this instance. + Gets or sets how constructors are used during deserialization. - - A that represents this instance. - + The constructor handling. - + - Returns a that represents this instance. + Gets or sets the contract resolver used by the serializer when + serializing .NET objects to JSON and vice versa. - The format. - - A that represents this instance. - + The contract resolver. - + - Returns a that represents this instance. + Gets or sets the used by the serializer when resolving references. - The format provider. - - A that represents this instance. - + The reference resolver. - + - Returns a that represents this instance. + Gets or sets the used by the serializer when writing trace messages. - The format. - The format provider. - - A that represents this instance. - + The trace writer. - + - Returns the responsible for binding operations performed on this object. + Gets or sets the used by the serializer when resolving type names. - The expression tree representation of the runtime value. - - The to bind this object. - + The binder. - + - Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. + Gets or sets the error handler called during serialization and deserialization. - An object to compare with this instance. - - A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: - Value - Meaning - Less than zero - This instance is less than . - Zero - This instance is equal to . - Greater than zero - This instance is greater than . - - - is not the same type as this instance. - + The error handler called during serialization and deserialization. - + - Gets a value indicating whether this token has child tokens. + Gets or sets the used by the serializer when invoking serialization callback methods. - - true if this token has child values; otherwise, false. - + The context. - + - Gets the node type for this . + Get or set how and values are formatting when writing JSON text. - The type. - + - Gets or sets the underlying token value. + Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - The underlying token value. - + - Initializes a new instance of the class from another object. + Indicates how JSON text output is formatted. - A object to copy from. - + - Initializes a new instance of the class. + Get or set how dates are written to JSON text. - The raw json. - + - Creates an instance of with the content of the reader's current token. + Get or set how time zones are handling during serialization and deserialization. - The reader. - An instance of with the content of the reader's current token. - + - Indicating whether a property is required. + Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - + - The property is not required. The default state. + Get or set how special floating point numbers, e.g. , + and , + are written as JSON. - + - The property must be defined in JSON but can be a null value. + Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. - + - The property must be defined in JSON and cannot be a null value. + Get or set how strings are escaped when writing JSON text. - + - Contract details for a used by the . + Gets or sets the culture used when reading JSON. Defaults to . - + - Initializes a new instance of the class. + Gets a value indicating whether there will be a check for additional content after deserializing an object. - The underlying type for the contract. + + true if there will be a check for additional content after deserializing an object; otherwise, false. + - + - Gets the object's properties. + Represents a reader that provides fast, non-cached, forward-only access to JSON text data. - The object's properties. - + - Gets or sets the property name resolver. + Initializes a new instance of the class with the specified . - The property name resolver. + The TextReader containing the XML data to read. - + - Contract details for a used by the . + Reads the next JSON token from the stream. + + true if the next token was read successfully; false if there are no more tokens to read. + - + - Initializes a new instance of the class. + Reads the next JSON token from the stream as a . - The underlying type for the contract. + + A or a null reference if the next JSON token is null. This method will return null at the end of an array. + - + - Gets or sets the ISerializable object constructor. + Reads the next JSON token from the stream as a . - The ISerializable object constructor. + A . This method will return null at the end of an array. - + - Contract details for a used by the . + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - Initializes a new instance of the class. + Reads the next JSON token from the stream as a . - The underlying type for the contract. + A . This method will return null at the end of an array. - + - Contract details for a used by the . + Reads the next JSON token from the stream as a . + A . This method will return null at the end of an array. - + - Initializes a new instance of the class. + Reads the next JSON token from the stream as a . - The underlying type for the contract. + A . This method will return null at the end of an array. - + - Get and set values for a using dynamic methods. + Changes the state to closed. - + - Initializes a new instance of the class. + Gets a value indicating whether the class can return line information. - The member info. + + true if LineNumber and LinePosition can be provided; otherwise, false. + - + - Sets the value. + Gets the current line number. - The target to set the value on. - The value to set on the target. + + The current line number or 0 if no line information is available (for example, HasLineInfo returns false). + - + - Gets the value. + Gets the current line position. - The target to get the value from. - The value. + + The current line position or 0 if no line information is available (for example, HasLineInfo returns false). + - + - Provides data for the Error event. + Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. - + - Initializes a new instance of the class. + Creates an instance of the JsonWriter class using the specified . - The current object. - The error context. + The TextWriter to write to. - + - Gets the current object the error event is being raised against. + Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. - The current object the error event is being raised against. - + - Gets the error context. + Closes this stream and the underlying stream. - The error context. - + - Represents a view of a . + Writes the beginning of a Json object. - + - Initializes a new instance of the class. + Writes the beginning of a Json array. - The name. - Type of the property. - + - When overridden in a derived class, returns whether resetting an object changes its value. + Writes the start of a constructor with the given name. - - true if resetting the component changes its value; otherwise, false. - - The component to test for reset capability. - + The name of the constructor. - + - When overridden in a derived class, gets the current value of the property on a component. + Writes the specified end token. - - The value of a property for a given component. - - The component with the property for which to retrieve the value. - + The end token to write. - + - When overridden in a derived class, resets the value for this property of the component to the default value. + Writes the property name of a name/value pair on a Json object. - The component with the property value that is to be reset to the default value. - + The name of the property. - + - When overridden in a derived class, sets the value of the component to a different value. + Writes the property name of a name/value pair on a JSON object. - The component with the property value that is to be set. - The new value. - + The name of the property. + A flag to indicate whether the text should be escaped when it is written as a JSON property name. - + - When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. + Writes indent characters. - - true if the property should be persisted; otherwise, false. - - The component with the property to be examined for persistence. - - + - When overridden in a derived class, gets the type of the component this property is bound to. + Writes the JSON value delimiter. - - A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type. - - + - When overridden in a derived class, gets a value indicating whether this property is read-only. + Writes an indent space. - - true if the property is read-only; otherwise, false. - - + - When overridden in a derived class, gets the type of the property. + Writes a value. + An error will raised if the value cannot be written as a single JSON token. - - A that represents the type of the property. - + The value to write. - + - Gets the hash code for the name of the member. + Writes a null value. - - - The hash code for the name of the member. - - + - Used to resolve references when serializing and deserializing JSON by the . + Writes an undefined value. - + - Resolves a reference to its object. + Writes raw JSON. - The serialization context. - The reference to resolve. - The object that + The raw JSON to write. - + - Gets the reference for the sepecified object. + Writes a value. - The serialization context. - The object to get a reference for. - The reference to the object. + The value to write. - + - Determines whether the specified object is referenced. + Writes a value. - The serialization context. - The object to test for a reference. - - true if the specified object is referenced; otherwise, false. - + The value to write. - + - Adds a reference to the specified object. + Writes a value. - The serialization context. - The reference. - The object to reference. + The value to write. - + - Specifies reference handling options for the . - Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable. + Writes a value. - - - + The value to write. - + - Do not preserve references when serializing types. + Writes a value. + The value to write. - + - Preserve references when serializing into a JSON object structure. + Writes a value. + The value to write. - + - Preserve references when serializing into a JSON array structure. + Writes a value. + The value to write. - + - Preserve references when serializing. + Writes a value. + The value to write. - + - Instructs the how to serialize the collection. + Writes a value. + The value to write. - + - Initializes a new instance of the class. + Writes a value. + The value to write. - + - Initializes a new instance of the class with a flag indicating whether the array can contain null items + Writes a value. - A flag indicating whether the array can contain null items. + The value to write. - + - Initializes a new instance of the class with the specified container Id. + Writes a value. - The container Id. + The value to write. - + - Gets or sets a value indicating whether null items are allowed in the collection. + Writes a value. - true if null items are allowed in the collection; otherwise, false. + The value to write. - + - Specifies default value handling options for the . + Writes a value. - - - - + The value to write. - + - Include members where the member value is the same as the member's default value when serializing objects. - Included members are written to JSON. Has no effect when deserializing. + Writes a value. + The value to write. - + - Ignore members where the member value is the same as the member's default value when serializing objects - so that is is not written to JSON. - This option will ignore all default values (e.g. null for objects and nullable typesl; 0 for integers, - decimals and floating point numbers; and false for booleans). The default value ignored can be changed by - placing the on the property. + Writes a value. + The value to write. - + - Members with a default value but no JSON will be set to their default value when deserializing. + Writes a value. + The value to write. - + - Ignore members where the member value is the same as the member's default value when serializing objects - and sets members to their default value when deserializing. + Writes a value. + The value to write. - + - Instructs the to use the specified when serializing the member or class. + Writes a value. + The value to write. - + - Initializes a new instance of the class. + Writes a value. - Type of the converter. + The value to write. - + - Gets the type of the converter. + Writes a value. - The type of the converter. + The value to write. - + - Instructs the how to serialize the object. + Writes a value. + The value to write. - + - Initializes a new instance of the class. + Writes out a comment /*...*/ containing the specified text. + Text to place inside the comment. - + - Initializes a new instance of the class with the specified member serialization. + Writes out the given white space. - The member serialization. + The string of white space characters. - + - Initializes a new instance of the class with the specified container Id. + Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented. - The container Id. - + - Gets or sets the member serialization. + Gets or sets which character to use to quote attribute values. - The member serialization. - + - Gets or sets a value that indicates whether the object's properties are required. + Gets or sets which character to use for indenting when is set to Formatting.Indented. - - A value indicating whether the object's properties are required. - - + - Specifies the settings on a object. + Gets or sets a value indicating whether object names will be surrounded with quotes. - + - Initializes a new instance of the class. + Specifies the type of Json token. - + - Gets or sets how reference loops (e.g. a class referencing itself) is handled. + This is returned by the if a method has not been called. - Reference loop handling. - + - Gets or sets how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + An object start token. - Missing member handling. - + - Gets or sets how objects are created during deserialization. + An array start token. - The object creation handling. - + - Gets or sets how null values are handled during serialization and deserialization. + A constructor start token. - Null value handling. - + - Gets or sets how null default are handled during serialization and deserialization. + An object property name. - The default value handling. - + - Gets or sets a collection that will be used during serialization. + A comment. - The converters. - + - Gets or sets how object references are preserved by the serializer. + Raw JSON. - The preserve references handling. - + - Gets or sets how type name writing and reading is handled by the serializer. + An integer. - The type name handling. - + - Gets or sets how a type name assembly is written and resolved by the serializer. + A float. - The type name assembly format. - + - Gets or sets how constructors are used during deserialization. + A string. - The constructor handling. - + - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. + A boolean. - The contract resolver. - + - Gets or sets the used by the serializer when resolving references. + A null token. - The reference resolver. - + - Gets or sets the used by the serializer when writing trace messages. + An undefined token. - The trace writer. - + - Gets or sets the used by the serializer when resolving type names. - - The binder. - - - - Gets or sets the error handler called during serialization and deserialization. - - The error handler called during serialization and deserialization. - - - - Gets or sets the used by the serializer when invoking serialization callback methods. - - The context. - - - - Get or set how and values are formatting when writing JSON text. - - - - - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . - - - - - Indicates how JSON text output is formatted. - - - - - Get or set how dates are written to JSON text. - - - - - Get or set how time zones are handling during serialization and deserialization. - - - - - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. - - - - - Get or set how special floating point numbers, e.g. , - and , - are written as JSON. + An object end token. - + - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + An array end token. - + - Get or set how strings are escaped when writing JSON text. + A constructor end token. - + - Gets or sets the culture used when reading JSON. Defaults to . + A Date. - + - Gets a value indicating whether there will be a check for additional content after deserializing an object. + Byte data. - - true if there will be a check for additional content after deserializing an object; otherwise, false. - @@ -3805,2993 +3907,2952 @@ The specified in the constructor. - + - Compares tokens to determine whether they are equal. + The exception thrown when an error occurs while reading Json text. - + - Determines whether the specified objects are equal. + Initializes a new instance of the class. - The first object of type to compare. - The second object of type to compare. - - true if the specified objects are equal; otherwise, false. - - + - Returns a hash code for the specified object. + Initializes a new instance of the class + with a specified error message. - The for which a hash code is to be returned. - A hash code for the specified object. - The type of is a reference type and is null. + The error message that explains the reason for the exception. - + - Specifies the member serialization options for the . + Initializes a new instance of the class + with a specified error message and a reference to the inner exception that is the cause of this exception. + The error message that explains the reason for the exception. + The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. - + - All public members are serialized by default. Members can be excluded using or . - This is the default member serialization mode. + Initializes a new instance of the class. + The that holds the serialized object data about the exception being thrown. + The that contains contextual information about the source or destination. + The parameter is null. + The class name is null or is zero (0). - + - Only members must be marked with or are serialized. - This member serialization mode can also be set by marking the class with . + Gets the path to the JSON where the error occurred. + The path to the JSON where the error occurred. - + - All public and private fields are serialized. Members can be excluded using or . - This member serialization mode can also be set by marking the class with - and setting IgnoreSerializableAttribute on to false. + Contains the LINQ to JSON extension methods. - + - Specifies how object creation is handled by the . + Returns a collection of tokens that contains the ancestors of every token in the source collection. + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains the ancestors of every node in the source collection. - + - Reuse existing objects, create new objects when needed. + Returns a collection of tokens that contains the descendants of every token in the source collection. + The type of the objects in source, constrained to . + An of that contains the source collection. + An of that contains the descendants of every node in the source collection. - + - Only reuse existing objects. + Returns a collection of child properties of every object in the source collection. + An of that contains the source collection. + An of that contains the properties of every object in the source collection. - + - Always create new objects. + Returns a collection of child values of every object in the source collection with the given key. + An of that contains the source collection. + The token key. + An of that contains the values of every node in the source collection with the given key. - + - Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). + Returns a collection of child values of every object in the source collection. + An of that contains the source collection. + An of that contains the values of every node in the source collection. - + - Writes the JSON representation of the object. + Returns a collection of converted child values of every object in the source collection with the given key. - The to write to. - The value. - The calling serializer. + The type to convert the values to. + An of that contains the source collection. + The token key. + An that contains the converted values of every node in the source collection with the given key. - + - Reads the JSON representation of the object. + Returns a collection of converted child values of every object in the source collection. - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. + The type to convert the values to. + An of that contains the source collection. + An that contains the converted values of every node in the source collection. - + - Gets or sets the date time styles used when converting a date to and from JSON. + Converts the value. - The date time styles used when converting a date to and from JSON. + The type to convert the value to. + A cast as a of . + A converted value. - + - Gets or sets the date time format used when converting a date to and from JSON. + Converts the value. - The date time format used when converting a date to and from JSON. + The source collection type. + The type to convert the value to. + A cast as a of . + A converted value. - + - Gets or sets the culture used when converting a date to and from JSON. + Returns a collection of child tokens of every array in the source collection. - The culture used when converting a date to and from JSON. + The source collection type. + An of that contains the source collection. + An of that contains the values of every node in the source collection. - + - Converts a to and from a JavaScript date constructor (e.g. new Date(52231943)). + Returns a collection of converted child tokens of every array in the source collection. + An of that contains the source collection. + The type to convert the values to. + The source collection type. + An that contains the converted values of every node in the source collection. - + - Writes the JSON representation of the object. + Returns the input typed as . - The to write to. - The value. - The calling serializer. + An of that contains the source collection. + The input typed as . - + - Reads the JSON representation of the object. + Returns the input typed as . - The to read from. - Type of the object. - The existing property value of the JSON that is being converted. - The calling serializer. - The object value. + The source collection type. + An of that contains the source collection. + The input typed as . - + - Converts XML to and from JSON. + Represents a collection of objects. + The type of token - + - Writes the JSON representation of the object. + Gets the with the specified key. - The to write to. - The calling serializer. - The value. + - + - Reads the JSON representation of the object. + Represents a JSON array. - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. + + + - + - Checks if the attributeName is a namespace attribute. + Represents a token that can contain other tokens. - Attribute name to test. - The attribute name prefix if it has one, otherwise an empty string. - True if attribute name is for a namespace attribute, otherwise false. - + - Determines whether this instance can convert the specified value type. + Represents an abstract JSON token. - Type of the value. - - true if this instance can convert the specified value type; otherwise, false. - - + - Gets or sets the name of the root element to insert when deserializing to XML if the JSON structure has produces multiple root elements. + Compares the values of two tokens, including the values of all descendant tokens. - The name of the deserialize root element. + The first to compare. + The second to compare. + true if the tokens are equal; otherwise false. - + - Gets or sets a flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. + Adds the specified content immediately after this token. - true if the array attibute is written to the XML; otherwise, false. + A content object that contains simple content or a collection of content objects to be added after this token. - + - Gets or sets a value indicating whether to write the root JSON object. + Adds the specified content immediately before this token. - true if the JSON root object is omitted; otherwise, false. + A content object that contains simple content or a collection of content objects to be added before this token. - + - Represents a reader that provides fast, non-cached, forward-only access to JSON text data. + Returns a collection of the ancestor tokens of this token. + A collection of the ancestor tokens of this token. - + - Initializes a new instance of the class with the specified . + Returns a collection of the sibling tokens after this token, in document order. - The TextReader containing the XML data to read. + A collection of the sibling tokens after this tokens, in document order. - + - Reads the next JSON token from the stream. + Returns a collection of the sibling tokens before this token, in document order. - - true if the next token was read successfully; false if there are no more tokens to read. - + A collection of the sibling tokens before this token, in document order. - + - Reads the next JSON token from the stream as a . + Gets the with the specified key converted to the specified type. - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - + The type to convert the token to. + The token key. + The converted token value. - + - Reads the next JSON token from the stream as a . + Returns a collection of the child tokens of this token, in document order. - A . This method will return null at the end of an array. + An of containing the child tokens of this , in document order. - + - Reads the next JSON token from the stream as a . + Returns a collection of the child tokens of this token, in document order, filtered by the specified type. - A . This method will return null at the end of an array. + The type to filter the child tokens on. + A containing the child tokens of this , in document order. - + - Reads the next JSON token from the stream as a . + Returns a collection of the child values of this token, in document order. - A . This method will return null at the end of an array. + The type to convert the values to. + A containing the child values of this , in document order. - + - Reads the next JSON token from the stream as a . + Removes this token from its parent. - A . This method will return null at the end of an array. - + - Reads the next JSON token from the stream as a . + Replaces this token with the specified token. - A . This method will return null at the end of an array. + The value. - + - Changes the state to closed. + Writes this token to a . + A into which this method will write. + A collection of which will be used when writing the token. - + - Gets a value indicating whether the class can return line information. + Returns the indented JSON for this token. - true if LineNumber and LinePosition can be provided; otherwise, false. + The indented JSON for this token. - + - Gets the current line number. + Returns the JSON for this token using the given formatting and converters. - - The current line number or 0 if no line information is available (for example, HasLineInfo returns false). - + Indicates how the output is formatted. + A collection of which will be used when writing the token. + The JSON for this token using the given formatting and converters. - + - Gets the current line position. + Performs an explicit conversion from to . - - The current line position or 0 if no line information is available (for example, HasLineInfo returns false). - + The value. + The result of the conversion. - + - Instructs the to always serialize the member with the specified name. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Initializes a new instance of the class with the specified name. + Performs an explicit conversion from to . - Name of the property. + The value. + The result of the conversion. - + - Gets or sets the converter used when serializing the property's collection items. + Performs an explicit conversion from to . - The collection's items converter. + The value. + The result of the conversion. - + - Gets or sets the null value handling used when serializing this property. + Performs an explicit conversion from to . - The null value handling. + The value. + The result of the conversion. - + - Gets or sets the default value handling used when serializing this property. + Performs an explicit conversion from to . - The default value handling. + The value. + The result of the conversion. - + - Gets or sets the reference loop handling used when serializing this property. + Performs an explicit conversion from to . - The reference loop handling. + The value. + The result of the conversion. - + - Gets or sets the object creation handling used when deserializing this property. + Performs an explicit conversion from to . - The object creation handling. + The value. + The result of the conversion. - + - Gets or sets the type name handling used when serializing this property. + Performs an explicit conversion from to . - The type name handling. + The value. + The result of the conversion. - + - Gets or sets whether this property's value is serialized as a reference. + Performs an explicit conversion from to . - Whether this property's value is serialized as a reference. + The value. + The result of the conversion. - + - Gets or sets the order of serialization and deserialization of a member. + Performs an explicit conversion from to . - The numeric order of serialization or deserialization. + The value. + The result of the conversion. - + - Gets or sets a value indicating whether this property is required. + Performs an explicit conversion from to . - - A value indicating whether this property is required. - + The value. + The result of the conversion. - + - Gets or sets the name of the property. + Performs an explicit conversion from to . - The name of the property. + The value. + The result of the conversion. - + - Gets or sets the the reference loop handling used when serializing the property's collection items. + Performs an explicit conversion from to . - The collection's items reference loop handling. + The value. + The result of the conversion. - + - Gets or sets the the type name handling used when serializing the property's collection items. + Performs an explicit conversion from to . - The collection's items type name handling. + The value. + The result of the conversion. - + - Gets or sets whether this property's collection items are serialized as a reference. + Performs an explicit conversion from to . - Whether this property's collection items are serialized as a reference. + The value. + The result of the conversion. - + - Instructs the not to serialize the public field or public read/write property value. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Creates an instance of the JsonWriter class using the specified . - - The TextWriter to write to. - - - - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Closes this stream and the underlying stream. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes the beginning of a Json object. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes the beginning of a Json array. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes the start of a constructor with the given name. + Performs an explicit conversion from to . - The name of the constructor. + The value. + The result of the conversion. - + - Writes the specified end token. + Performs an explicit conversion from to . - The end token to write. + The value. + The result of the conversion. - + - Writes the property name of a name/value pair on a Json object. + Performs an explicit conversion from to . - The name of the property. + The value. + The result of the conversion. - + - Writes the property name of a name/value pair on a JSON object. + Performs an explicit conversion from to . - The name of the property. - A flag to indicate whether the text should be escaped when it is written as a JSON property name. + The value. + The result of the conversion. - + - Writes indent characters. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes the JSON value delimiter. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes an indent space. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes a value. - An error will raised if the value cannot be written as a single JSON token. + Performs an explicit conversion from to . - The value to write. + The value. + The result of the conversion. - + - Writes a null value. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes an undefined value. + Performs an explicit conversion from to . + The value. + The result of the conversion. - + - Writes raw JSON. + Performs an explicit conversion from to . - The raw JSON to write. + The value. + The result of the conversion. - + - Writes a value. + Performs an explicit conversion from to . - The value to write. + The value. + The result of the conversion. - + - Writes a value. + Performs an explicit conversion from to . - The value to write. + The value. + The result of the conversion. - + - Writes a value. + Performs an explicit conversion from to . - The value to write. + The value. + The result of the conversion. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes a value. + Performs an implicit conversion from to . - The value to write. + The value to create a from. + The initialized with the specified value. - + - Writes out a comment /*...*/ containing the specified text. + Performs an implicit conversion from to . - Text to place inside the comment. + The value to create a from. + The initialized with the specified value. - + - Writes out the given white space. + Performs an implicit conversion from to . - The string of white space characters. + The value to create a from. + The initialized with the specified value. - + - Gets or sets how many IndentChars to write for each level in the hierarchy when is set to Formatting.Indented. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Gets or sets which character to use to quote attribute values. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Gets or sets which character to use for indenting when is set to Formatting.Indented. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Gets or sets a value indicating whether object names will be surrounded with quotes. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - The exception thrown when an error occurs while reading Json text. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + The value to create a from. + The initialized with the specified value. - + - Gets the path to the JSON where the error occurred. + Performs an implicit conversion from to . - The path to the JSON where the error occurred. + The value to create a from. + The initialized with the specified value. - + - The exception thrown when an error occurs while reading Json text. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Performs an implicit conversion from to . + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Performs an implicit conversion from to . - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The value to create a from. + The initialized with the specified value. - + - Initializes a new instance of the class. + Creates an for this token. - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + An that can be used to read this token and its descendants. - + - Gets the line number indicating where the error occurred. + Creates a from an object. - The line number indicating where the error occurred. + The object that will be used to create . + A with the value of the specified object - + - Gets the line position indicating where the error occurred. + Creates a from an object using the specified . - The line position indicating where the error occurred. + The object that will be used to create . + The that will be used when reading the object. + A with the value of the specified object - + - Gets the path to the JSON where the error occurred. + Creates the specified .NET type from the . - The path to the JSON where the error occurred. + The object type that the token will be deserialized to. + The new object created from the JSON value. - + - Represents a collection of . + Creates the specified .NET type from the . + The object type that the token will be deserialized to. + The new object created from the JSON value. - + - Provides methods for converting between common language runtime types and JSON types. + Creates the specified .NET type from the using the specified . - - - + The object type that the token will be deserialized to. + The that will be used when creating the object. + The new object created from the JSON value. - + - Represents JavaScript's boolean value true as a string. This field is read-only. + Creates the specified .NET type from the using the specified . + The object type that the token will be deserialized to. + The that will be used when creating the object. + The new object created from the JSON value. - + - Represents JavaScript's boolean value false as a string. This field is read-only. + Creates a from a . + An positioned at the token to read into this . + + An that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + - + - Represents JavaScript's null as a string. This field is read-only. + Load a from a string that contains JSON. + A that contains JSON. + A populated from the string that contains JSON. - + - Represents JavaScript's undefined as a string. This field is read-only. + Creates a from a . + An positioned at the token to read into this . + + An that contains the token and its descendant tokens + that were read from the reader. The runtime type of the token is determined + by the token type of the first token encountered in the reader. + - + - Represents JavaScript's positive infinity as a string. This field is read-only. + Selects a using a JPath expression. Selects the token that matches the object path. + + A that contains a JPath expression. + + A , or null. - + - Represents JavaScript's negative infinity as a string. This field is read-only. + Selects a using a JPath expression. Selects the token that matches the object path. + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . - + - Represents JavaScript's NaN as a string. This field is read-only. + Selects a collection of elements using a JPath expression. + + A that contains a JPath expression. + + An that contains the selected elements. - + - Converts the to its JSON string representation. + Selects a collection of elements using a JPath expression. - The value to convert. - A JSON string representation of the . + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. - + - Converts the to its JSON string representation using the specified. + Returns the responsible for binding operations performed on this object. - The value to convert. - The format the date will be converted to. - The time zone handling when the date is converted to a string. - A JSON string representation of the . + The expression tree representation of the runtime value. + + The to bind this object. + - + - Converts the to its JSON string representation. + Returns the responsible for binding operations performed on this object. - The value to convert. - A JSON string representation of the . + The expression tree representation of the runtime value. + + The to bind this object. + - + - Converts the to its JSON string representation using the specified. + Creates a new instance of the . All child tokens are recursively cloned. - The value to convert. - The format the date will be converted to. - A JSON string representation of the . + A new instance of the . - + - Converts the to its JSON string representation. + Gets a comparer that can compare two tokens for value equality. - The value to convert. - A JSON string representation of the . + A that can compare two nodes for value equality. - + - Converts the to its JSON string representation. + Gets or sets the parent. - The value to convert. - A JSON string representation of the . + The parent. - + - Converts the to its JSON string representation. + Gets the root of this . - The value to convert. - A JSON string representation of the . + The root of this . - + - Converts the to its JSON string representation. + Gets the node type for this . - The value to convert. - A JSON string representation of the . + The type. - + - Converts the to its JSON string representation. + Gets a value indicating whether this token has child tokens. - The value to convert. - A JSON string representation of the . + + true if this token has child values; otherwise, false. + - + - Converts the to its JSON string representation. + Gets the next sibling token of this node. - The value to convert. - A JSON string representation of the . + The that contains the next sibling token. - + - Converts the to its JSON string representation. + Gets the previous sibling token of this node. - The value to convert. - A JSON string representation of the . + The that contains the previous sibling token. - + - Converts the to its JSON string representation. + Gets the path of the JSON token. - The value to convert. - A JSON string representation of the . - + - Converts the to its JSON string representation. + Gets the with the specified key. - The value to convert. - A JSON string representation of the . + The with the specified key. - + - Converts the to its JSON string representation. + Get the first child token of this token. - The value to convert. - A JSON string representation of the . + A containing the first child token of the . - + - Converts the to its JSON string representation. + Get the last child token of this token. - The value to convert. - A JSON string representation of the . + A containing the last child token of the . - + - Converts the to its JSON string representation. + Raises the event. - The value to convert. - A JSON string representation of the . + The instance containing the event data. - + - Converts the to its JSON string representation. + Raises the event. - The value to convert. - A JSON string representation of the . + The instance containing the event data. - + - Converts the to its JSON string representation. + Raises the event. - The value to convert. - A JSON string representation of the . + The instance containing the event data. - + - Converts the to its JSON string representation. + Returns a collection of the child tokens of this token, in document order. - The value to convert. - A JSON string representation of the . + + An of containing the child tokens of this , in document order. + - + - Converts the to its JSON string representation. + Returns a collection of the child values of this token, in document order. - The value to convert. - A JSON string representation of the . + The type to convert the values to. + + A containing the child values of this , in document order. + - + - Converts the to its JSON string representation. + Returns a collection of the descendant tokens for this token in document order. - The value to convert. - A JSON string representation of the . + An containing the descendant tokens of the . - + - Converts the to its JSON string representation. + Adds the specified content as children of this . - The value to convert. - A JSON string representation of the . + The content to be added. - + - Converts the to its JSON string representation. + Adds the specified content as the first children of this . - The value to convert. - The string delimiter character. - A JSON string representation of the . + The content to be added. - + - Converts the to its JSON string representation. + Creates an that can be used to add tokens to the . - The value to convert. - A JSON string representation of the . + An that is ready to have content written to it. - + - Serializes the specified object to a JSON string. + Replaces the children nodes of this token with the specified content. - The object to serialize. - A JSON string representation of the object. + The content. - + - Serializes the specified object to a JSON string using formatting. + Removes the child nodes from this token. - The object to serialize. - Indicates how the output is formatted. - - A JSON string representation of the object. - - + - Serializes the specified object to a JSON string using a collection of . + Occurs when the list changes or an item in the list changes. - The object to serialize. - A collection converters used while serializing. - A JSON string representation of the object. - + - Serializes the specified object to a JSON string using formatting and a collection of . + Occurs before an item is added to the collection. - The object to serialize. - Indicates how the output is formatted. - A collection converters used while serializing. - A JSON string representation of the object. - + - Serializes the specified object to a JSON string using . + Occurs when the items list of the collection has changed, or the collection is reset. - The object to serialize. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A JSON string representation of the object. - - + - Serializes the specified object to a JSON string using formatting and . + Gets the container's children tokens. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A JSON string representation of the object. - + The container's children tokens. - + - Serializes the specified object to a JSON string using a type, formatting and . + Gets a value indicating whether this token has child tokens. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - - - A JSON string representation of the object. - + + true if this token has child values; otherwise, false. + - + - Asynchronously serializes the specified object to a JSON string. - Serialization will happen on a new thread. + Get the first child token of this token. - The object to serialize. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - + + A containing the first child token of the . + - + - Asynchronously serializes the specified object to a JSON string using formatting. - Serialization will happen on a new thread. + Get the last child token of this token. - The object to serialize. - Indicates how the output is formatted. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - + + A containing the last child token of the . + - + - Asynchronously serializes the specified object to a JSON string using formatting and a collection of . - Serialization will happen on a new thread. + Gets the count of child JSON tokens. - The object to serialize. - Indicates how the output is formatted. - The used to serialize the object. - If this is null, default serialization settings will be is used. - - A task that represents the asynchronous serialize operation. The value of the TResult parameter contains a JSON string representation of the object. - + The count of child JSON tokens - + - Deserializes the JSON to a .NET object. + Initializes a new instance of the class. - The JSON to deserialize. - The deserialized object from the Json string. - + - Deserializes the JSON to a .NET object using . + Initializes a new instance of the class from another object. - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + A object to copy from. - + - Deserializes the JSON to the specified .NET type. + Initializes a new instance of the class with the specified content. - The JSON to deserialize. - The of object being deserialized. - The deserialized object from the Json string. + The contents of the array. - + - Deserializes the JSON to the specified .NET type. + Initializes a new instance of the class with the specified content. - The type of the object to deserialize to. - The JSON to deserialize. - The deserialized object from the Json string. + The contents of the array. - + - Deserializes the JSON to the given anonymous type. + Loads an from a . - - The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - The deserialized anonymous type from the JSON string. + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Deserializes the JSON to the given anonymous type using . + Load a from a string that contains JSON. - - The anonymous type to deserialize to. This can't be specified - traditionally and must be infered from the anonymous type passed - as a parameter. - - The JSON to deserialize. - The anonymous type object. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized anonymous type from the JSON string. + A that contains JSON. + A populated from the string that contains JSON. + + + - + - Deserializes the JSON to the specified .NET type using a collection of . + Creates a from an object. - The type of the object to deserialize to. - The JSON to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. + The object that will be used to create . + A with the values of the specified object - + - Deserializes the JSON to the specified .NET type using . + Creates a from an object. - The type of the object to deserialize to. - The object to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object - + - Deserializes the JSON to the specified .NET type using a collection of . + Writes this token to a . - The JSON to deserialize. - The type of the object to deserialize. - Converters to use while deserializing. - The deserialized object from the JSON string. + A into which this method will write. + A collection of which will be used when writing the token. - + - Deserializes the JSON to the specified .NET type using . + Determines the index of a specific item in the . - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - The deserialized object from the JSON string. + The object to locate in the . + + The index of if found in the list; otherwise, -1. + - + - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. + Inserts an item to the at the specified index. + + The zero-based index at which should be inserted. + The object to insert into the . + + is not a valid index in the . + The is read-only. + + + + Removes the item at the specified index. + + The zero-based index of the item to remove. + + is not a valid index in the . + The is read-only. + + + + Returns an enumerator that iterates through the collection. - The type of the object to deserialize to. - The JSON to deserialize. - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + A that can be used to iterate through the collection. - + - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. + Adds an item to the . + + The object to add to the . + The is read-only. + + + + Removes all items from the . + + The is read-only. + + + + Determines whether the contains a specific value. - The type of the object to deserialize to. - The JSON to deserialize. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - + The object to locate in the . - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + true if is found in the ; otherwise, false. - + - Asynchronously deserializes the JSON to the specified .NET type. - Deserialization will happen on a new thread. + Copies to. - The JSON to deserialize. - - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. - + The array. + Index of the array. - + - Asynchronously deserializes the JSON to the specified .NET type using . - Deserialization will happen on a new thread. + Removes the first occurrence of a specific object from the . - The JSON to deserialize. - The type of the object to deserialize to. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - + The object to remove from the . - A task that represents the asynchronous deserialize operation. The value of the TResult parameter contains the deserialized object from the JSON string. + true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . + The is read-only. - + - Populates the object with values from the JSON string. + Gets the container's children tokens. - The JSON to populate values from. - The target object to populate values onto. + The container's children tokens. - + - Populates the object with values from the JSON string using . + Gets the node type for this . - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - + The type. - + - Asynchronously populates the object with values from the JSON string using . + Gets the with the specified key. - The JSON to populate values from. - The target object to populate values onto. - - The used to deserialize the object. - If this is null, default serialization settings will be is used. - - - A task that represents the asynchronous populate operation. - + The with the specified key. - + - Serializes the XML node to a JSON string. + Gets or sets the at the specified index. - The node to serialize. - A JSON string of the XmlNode. + - + - Serializes the XML node to a JSON string using formatting. + Gets a value indicating whether the is read-only. - The node to serialize. - Indicates how the output is formatted. - A JSON string of the XmlNode. + true if the is read-only; otherwise, false. - + - Serializes the XML node to a JSON string using formatting and omits the root object if is true. + Represents a JSON constructor. - The node to serialize. - Indicates how the output is formatted. - Omits writing the root object. - A JSON string of the XmlNode. - + - Deserializes the XmlNode from a JSON string. + Initializes a new instance of the class. - The JSON string. - The deserialized XmlNode - + - Deserializes the XmlNode from a JSON string nested in a root elment specified by . + Initializes a new instance of the class from another object. - The JSON string. - The name of the root element to append when deserializing. - The deserialized XmlNode + A object to copy from. - + - Deserializes the XmlNode from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Initializes a new instance of the class with the specified name and content. - The JSON string. - The name of the root element to append when deserializing. - - A flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized XmlNode + The constructor name. + The contents of the constructor. - + - Serializes the to a JSON string. + Initializes a new instance of the class with the specified name and content. - The node to convert to JSON. - A JSON string of the XNode. + The constructor name. + The contents of the constructor. - + - Serializes the to a JSON string using formatting. + Initializes a new instance of the class with the specified name. - The node to convert to JSON. - Indicates how the output is formatted. - A JSON string of the XNode. + The constructor name. - + - Serializes the to a JSON string using formatting and omits the root object if is true. + Writes this token to a . - The node to serialize. - Indicates how the output is formatted. - Omits writing the root object. - A JSON string of the XNode. + A into which this method will write. + A collection of which will be used when writing the token. - + - Deserializes the from a JSON string. + Loads an from a . - The JSON string. - The deserialized XNode + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Deserializes the from a JSON string nested in a root elment specified by . + Gets the container's children tokens. - The JSON string. - The name of the root element to append when deserializing. - The deserialized XNode + The container's children tokens. - + - Deserializes the from a JSON string nested in a root elment specified by - and writes a .NET array attribute for collections. + Gets or sets the name of this constructor. - The JSON string. - The name of the root element to append when deserializing. - - A flag to indicate whether to write the Json.NET array attribute. - This attribute helps preserve arrays when converting the written XML back to JSON. - - The deserialized XNode + The constructor name. - + - Gets or sets a function that creates default . - Default settings are automatically used by serialization methods on , - and and on . - To serialize without using any default settings create a with - . + Gets the node type for this . + The type. - + - The exception thrown when an error occurs during Json serialization or deserialization. + Gets the with the specified key. + The with the specified key. - + - Initializes a new instance of the class. + Represents a collection of objects. + The type of token - + - Initializes a new instance of the class - with a specified error message. + An empty collection of objects. - The error message that explains the reason for the exception. - + - Initializes a new instance of the class - with a specified error message and a reference to the inner exception that is the cause of this exception. + Initializes a new instance of the struct. - The error message that explains the reason for the exception. - The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no inner exception is specified. + The enumerable. - + - Initializes a new instance of the class. + Returns an enumerator that iterates through the collection. - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - The parameter is null. - The class name is null or is zero (0). + + A that can be used to iterate through the collection. + - + - Serializes and deserializes objects into and from the JSON format. - The enables you to control how objects are encoded into JSON. + Returns an enumerator that iterates through a collection. + + An object that can be used to iterate through the collection. + - + - Initializes a new instance of the class. + Determines whether the specified is equal to this instance. + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + - + - Creates a new instance. - The will not use default settings. + Returns a hash code for this instance. - A new instance. - The will not use default settings. + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - + + + Gets the with the specified key. + + + + + + Represents a JSON object. + + + + + + - Creates a new instance using the specified . - The will not use default settings. + Initializes a new instance of the class. - The settings to be applied to the . - - A new instance using the specified . - The will not use default settings. - - + - Creates a new instance. - The will use default settings. + Initializes a new instance of the class from another object. - - A new instance. - The will use default settings. - + A object to copy from. - + - Creates a new instance using the specified . - The will use default settings. + Initializes a new instance of the class with the specified content. - The settings to be applied to the . - - A new instance using the specified . - The will use default settings. - + The contents of the object. - + - Populates the JSON values onto the target object. + Initializes a new instance of the class with the specified content. - The that contains the JSON structure to reader values from. - The target object to populate values onto. + The contents of the object. - + - Populates the JSON values onto the target object. + Gets an of this object's properties. - The that contains the JSON structure to reader values from. - The target object to populate values onto. + An of this object's properties. - + - Deserializes the Json structure contained by the specified . + Gets a the specified name. - The that contains the JSON structure to deserialize. - The being deserialized. + The property name. + A with the specified name or null. - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Gets an of this object's property values. - The containing the object. - The of object being deserialized. - The instance of being deserialized. + An of this object's property values. - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Loads an from a . - The containing the object. - The type of the object to deserialize. - The instance of being deserialized. + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Deserializes the Json structure contained by the specified - into an instance of the specified type. + Load a from a string that contains JSON. - The containing the object. - The of object being deserialized. - The instance of being deserialized. + A that contains JSON. + A populated from the string that contains JSON. + + + - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Creates a from an object. - The used to write the Json structure. - The to serialize. + The object that will be used to create . + A with the values of the specified object - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Creates a from an object. - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - + The object that will be used to create . + The that will be used to read the object. + A with the values of the specified object - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Writes this token to a . - The used to write the Json structure. - The to serialize. - - The type of the value being serialized. - This parameter is used when is Auto to write out the type name if the type of the value does not match. - Specifing the type is optional. - + A into which this method will write. + A collection of which will be used when writing the token. - + - Serializes the specified and writes the Json structure - to a Stream using the specified . + Gets the with the specified property name. - The used to write the Json structure. - The to serialize. + Name of the property. + The with the specified property name. - + - Occurs when the errors during serialization and deserialization. + Gets the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + Name of the property. + One of the enumeration values that specifies how the strings will be compared. + The with the specified property name. - + - Gets or sets the used by the serializer when resolving references. + Tries to get the with the specified property name. + The exact property name will be searched for first and if no matching property is found then + the will be used to match a property. + Name of the property. + The value. + One of the enumeration values that specifies how the strings will be compared. + true if a value was successfully retrieved; otherwise, false. - + - Gets or sets the used by the serializer when resolving type names. + Adds the specified property name. + Name of the property. + The value. - + - Gets or sets the used by the serializer when writing trace messages. + Removes the property with the specified name. - The trace writer. + Name of the property. + true if item was successfully removed; otherwise, false. - + - Gets or sets how type name writing and reading is handled by the serializer. + Tries the get value. + Name of the property. + The value. + true if a value was successfully retrieved; otherwise, false. - + - Gets or sets how a type name assembly is written and resolved by the serializer. + Returns an enumerator that iterates through the collection. - The type name assembly format. + + A that can be used to iterate through the collection. + - + - Gets or sets how object references are preserved by the serializer. + Raises the event with the provided arguments. + Name of the property. - + - Get or set how reference loops (e.g. a class referencing itself) is handled. + Raises the event with the provided arguments. + Name of the property. - + - Get or set how missing members (e.g. JSON contains a property that isn't a member on the object) are handled during deserialization. + Returns the properties for this instance of a component. + + A that represents the properties for this component instance. + - + - Get or set how null values are handled during serialization and deserialization. + Returns the properties for this instance of a component using the attribute array as a filter. + An array of type that is used as a filter. + + A that represents the filtered properties for this component instance. + - + - Get or set how null default are handled during serialization and deserialization. + Returns a collection of custom attributes for this instance of a component. + + An containing the attributes for this object. + - + - Gets or sets how objects are created during deserialization. + Returns the class name of this instance of a component. - The object creation handling. + + The class name of the object, or null if the class does not have a name. + - + - Gets or sets how constructors are used during deserialization. + Returns the name of this instance of a component. - The constructor handling. + + The name of the object, or null if the object does not have a name. + - + - Gets a collection that will be used during serialization. + Returns a type converter for this instance of a component. - Collection that will be used during serialization. + + A that is the converter for this object, or null if there is no for this object. + - + - Gets or sets the contract resolver used by the serializer when - serializing .NET objects to JSON and vice versa. + Returns the default event for this instance of a component. + + An that represents the default event for this object, or null if this object does not have events. + - + - Gets or sets the used by the serializer when invoking serialization callback methods. + Returns the default property for this instance of a component. - The context. + + A that represents the default property for this object, or null if this object does not have properties. + - + - Indicates how JSON text output is formatted. + Returns an editor of the specified type for this instance of a component. + A that represents the editor for this object. + + An of the specified type that is the editor for this object, or null if the editor cannot be found. + - + - Get or set how dates are written to JSON text. + Returns the events for this instance of a component using the specified attribute array as a filter. + An array of type that is used as a filter. + + An that represents the filtered events for this component instance. + - + - Get or set how time zones are handling during serialization and deserialization. + Returns the events for this instance of a component. + + An that represents the events for this component instance. + - + - Get or set how date formatted strings, e.g. "\/Date(1198908717056)\/" and "2012-03-21T05:40Z", are parsed when reading JSON. + Returns an object that contains the property described by the specified property descriptor. + A that represents the property whose owner is to be found. + + An that represents the owner of the specified property. + - + - Get or set how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. + Returns the responsible for binding operations performed on this object. + The expression tree representation of the runtime value. + + The to bind this object. + - + - Get or set how special floating point numbers, e.g. , - and , - are written as JSON text. + Gets the container's children tokens. + The container's children tokens. - + - Get or set how strings are escaped when writing JSON text. + Occurs when a property value changes. - + - Get or set how and values are formatting when writing JSON text. + Occurs when a property value is changing. - + - Gets or sets the culture used when reading JSON. Defaults to . + Gets the node type for this . + The type. - + - Gets or sets the maximum depth allowed when reading JSON. Reading past this depth will throw a . + Gets the with the specified key. + The with the specified key. - + - Gets a value indicating whether there will be a check for additional JSON content after deserializing an object. + Gets or sets the with the specified property name. - - true if there will be a check for additional JSON content after deserializing an object; otherwise, false. - + - + - Contains the LINQ to JSON extension methods. + Represents a JSON property. - + - Returns a collection of tokens that contains the ancestors of every token in the source collection. + Initializes a new instance of the class from another object. - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the ancestors of every node in the source collection. + A object to copy from. - + - Returns a collection of tokens that contains the descendants of every token in the source collection. + Initializes a new instance of the class. - The type of the objects in source, constrained to . - An of that contains the source collection. - An of that contains the descendants of every node in the source collection. + The property name. + The property content. - + - Returns a collection of child properties of every object in the source collection. + Initializes a new instance of the class. - An of that contains the source collection. - An of that contains the properties of every object in the source collection. + The property name. + The property content. - + - Returns a collection of child values of every object in the source collection with the given key. + Writes this token to a . - An of that contains the source collection. - The token key. - An of that contains the values of every node in the source collection with the given key. + A into which this method will write. + A collection of which will be used when writing the token. - + - Returns a collection of child values of every object in the source collection. + Loads an from a . - An of that contains the source collection. - An of that contains the values of every node in the source collection. + A that will be read for the content of the . + A that contains the JSON that was read from the specified . - + - Returns a collection of converted child values of every object in the source collection with the given key. + Gets the container's children tokens. - The type to convert the values to. - An of that contains the source collection. - The token key. - An that contains the converted values of every node in the source collection with the given key. + The container's children tokens. - + - Returns a collection of converted child values of every object in the source collection. + Gets the property name. - The type to convert the values to. - An of that contains the source collection. - An that contains the converted values of every node in the source collection. + The property name. - + - Converts the value. + Gets or sets the property value. - The type to convert the value to. - A cast as a of . - A converted value. + The property value. - + - Converts the value. + Gets the node type for this . - The source collection type. - The type to convert the value to. - A cast as a of . - A converted value. + The type. - + - Returns a collection of child tokens of every array in the source collection. + Represents a view of a . - The source collection type. - An of that contains the source collection. - An of that contains the values of every node in the source collection. - + - Returns a collection of converted child tokens of every array in the source collection. + Initializes a new instance of the class. - An of that contains the source collection. - The type to convert the values to. - The source collection type. - An that contains the converted values of every node in the source collection. + The name. - + - Returns the input typed as . + When overridden in a derived class, returns whether resetting an object changes its value. - An of that contains the source collection. - The input typed as . + + true if resetting the component changes its value; otherwise, false. + + The component to test for reset capability. + - + - Returns the input typed as . + When overridden in a derived class, gets the current value of the property on a component. - The source collection type. - An of that contains the source collection. - The input typed as . + + The value of a property for a given component. + + The component with the property for which to retrieve the value. + - + - Represents a JSON constructor. + When overridden in a derived class, resets the value for this property of the component to the default value. + The component with the property value that is to be reset to the default value. + - + - Represents a token that can contain other tokens. + When overridden in a derived class, sets the value of the component to a different value. + The component with the property value that is to be set. + The new value. + - + - Raises the event. + When overridden in a derived class, determines a value indicating whether the value of this property needs to be persisted. - The instance containing the event data. + + true if the property should be persisted; otherwise, false. + + The component with the property to be examined for persistence. + - + - Raises the event. + When overridden in a derived class, gets the type of the component this property is bound to. - The instance containing the event data. + + A that represents the type of component this property is bound to. When the or methods are invoked, the object specified might be an instance of this type. + - + - Raises the event. + When overridden in a derived class, gets a value indicating whether this property is read-only. - The instance containing the event data. + + true if the property is read-only; otherwise, false. + - + - Returns a collection of the child tokens of this token, in document order. + When overridden in a derived class, gets the type of the property. - An of containing the child tokens of this , in document order. + A that represents the type of the property. - + - Returns a collection of the child values of this token, in document order. + Gets the hash code for the name of the member. - The type to convert the values to. + - A containing the child values of this , in document order. + The hash code for the name of the member. - + - Returns a collection of the descendant tokens for this token in document order. + Represents a raw JSON string. - An containing the descendant tokens of the . - + - Adds the specified content as children of this . + Represents a value in JSON (string, integer, date, etc). - The content to be added. - + - Adds the specified content as the first children of this . + Initializes a new instance of the class from another object. - The content to be added. + A object to copy from. - + - Creates an that can be used to add tokens to the . + Initializes a new instance of the class with the given value. - An that is ready to have content written to it. + The value. - + - Replaces the children nodes of this token with the specified content. + Initializes a new instance of the class with the given value. - The content. + The value. - + - Removes the child nodes from this token. + Initializes a new instance of the class with the given value. + The value. - + - Occurs when the list changes or an item in the list changes. + Initializes a new instance of the class with the given value. + The value. - + - Occurs before an item is added to the collection. + Initializes a new instance of the class with the given value. + The value. - + - Occurs when the items list of the collection has changed, or the collection is reset. + Initializes a new instance of the class with the given value. + The value. - + - Gets the container's children tokens. + Initializes a new instance of the class with the given value. - The container's children tokens. + The value. - + - Gets a value indicating whether this token has child tokens. + Initializes a new instance of the class with the given value. - - true if this token has child values; otherwise, false. - + The value. - + - Get the first child token of this token. + Initializes a new instance of the class with the given value. - - A containing the first child token of the . - + The value. - + - Get the last child token of this token. + Initializes a new instance of the class with the given value. - - A containing the last child token of the . - + The value. - + - Gets the count of child JSON tokens. + Initializes a new instance of the class with the given value. - The count of child JSON tokens + The value. - + - Initializes a new instance of the class. + Initializes a new instance of the class with the given value. + The value. - + - Initializes a new instance of the class from another object. + Initializes a new instance of the class with the given value. - A object to copy from. + The value. - + - Initializes a new instance of the class with the specified name and content. + Initializes a new instance of the class with the given value. - The constructor name. - The contents of the constructor. + The value. - + - Initializes a new instance of the class with the specified name and content. + Creates a comment with the given value. - The constructor name. - The contents of the constructor. + The value. + A comment with the given value. - + - Initializes a new instance of the class with the specified name. + Creates a string with the given value. - The constructor name. + The value. + A string with the given value. - + Writes this token to a . A into which this method will write. A collection of which will be used when writing the token. - - - Loads an from a . - - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - - + - Gets the container's children tokens. + Indicates whether the current object is equal to another object of the same type. - The container's children tokens. + + true if the current object is equal to the parameter; otherwise, false. + + An object to compare with this object. - + - Gets or sets the name of this constructor. + Determines whether the specified is equal to the current . - The constructor name. + The to compare with the current . + + true if the specified is equal to the current ; otherwise, false. + + + The parameter is null. + - + - Gets the node type for this . + Serves as a hash function for a particular type. - The type. + + A hash code for the current . + - + - Gets the with the specified key. + Returns a that represents this instance. - The with the specified key. + + A that represents this instance. + - + - Represents a collection of objects. + Returns a that represents this instance. - The type of token + The format. + + A that represents this instance. + - + - An empty collection of objects. + Returns a that represents this instance. + The format provider. + + A that represents this instance. + - + - Initializes a new instance of the struct. + Returns a that represents this instance. - The enumerable. + The format. + The format provider. + + A that represents this instance. + - + - Returns an enumerator that iterates through the collection. + Returns the responsible for binding operations performed on this object. + The expression tree representation of the runtime value. - A that can be used to iterate through the collection. + The to bind this object. - + - Returns an enumerator that iterates through a collection. + Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object. + An object to compare with this instance. - An object that can be used to iterate through the collection. + A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings: + Value + Meaning + Less than zero + This instance is less than . + Zero + This instance is equal to . + Greater than zero + This instance is greater than . + + is not the same type as this instance. + - + - Determines whether the specified is equal to this instance. + Gets a value indicating whether this token has child tokens. - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - + + true if this token has child values; otherwise, false. + - + - Returns a hash code for this instance. + Gets the node type for this . - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - + The type. - + - Gets the with the specified key. + Gets or sets the underlying token value. - + The underlying token value. - + - Represents a JSON object. + Initializes a new instance of the class from another object. - - - + A object to copy from. - + - Initializes a new instance of the class. + Initializes a new instance of the class. + The raw json. - + - Initializes a new instance of the class from another object. + Creates an instance of with the content of the reader's current token. - A object to copy from. + The reader. + An instance of with the content of the reader's current token. - + - Initializes a new instance of the class with the specified content. + Compares tokens to determine whether they are equal. - The contents of the object. - + - Initializes a new instance of the class with the specified content. + Determines whether the specified objects are equal. - The contents of the object. + The first object of type to compare. + The second object of type to compare. + + true if the specified objects are equal; otherwise, false. + - + - Gets an of this object's properties. + Returns a hash code for the specified object. - An of this object's properties. + The for which a hash code is to be returned. + A hash code for the specified object. + The type of is a reference type and is null. - + - Gets a the specified name. + Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. - The property name. - A with the specified name or null. - + - Gets an of this object's property values. + Initializes a new instance of the class. - An of this object's property values. + The token to read from. - + - Loads an from a . + Reads the next JSON token from the stream as a . - A that will be read for the content of the . - A that contains the JSON that was read from the specified . + + A or a null reference if the next JSON token is null. This method will return null at the end of an array. + - + - Load a from a string that contains JSON. + Reads the next JSON token from the stream as a . - A that contains JSON. - A populated from the string that contains JSON. - - - + A . This method will return null at the end of an array. - + - Creates a from an object. + Reads the next JSON token from the stream as a . - The object that will be used to create . - A with the values of the specified object + A . This method will return null at the end of an array. - + - Creates a from an object. + Reads the next JSON token from the stream as a . - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object + A . This method will return null at the end of an array. - + - Writes this token to a . + Reads the next JSON token from the stream as a . - A into which this method will write. - A collection of which will be used when writing the token. + A . This method will return null at the end of an array. - + - Gets the with the specified property name. + Reads the next JSON token from the stream as a . - Name of the property. - The with the specified property name. + A . This method will return null at the end of an array. - + - Gets the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. + Reads the next JSON token from the stream. - Name of the property. - One of the enumeration values that specifies how the strings will be compared. - The with the specified property name. + + true if the next token was read successfully; false if there are no more tokens to read. + - + - Tries to get the with the specified property name. - The exact property name will be searched for first and if no matching property is found then - the will be used to match a property. + Specifies the type of token. - Name of the property. - The value. - One of the enumeration values that specifies how the strings will be compared. - true if a value was successfully retrieved; otherwise, false. - + - Adds the specified property name. + No token type has been set. - Name of the property. - The value. - + - Removes the property with the specified name. + A JSON object. - Name of the property. - true if item was successfully removed; otherwise, false. - + - Tries the get value. + A JSON array. - Name of the property. - The value. - true if a value was successfully retrieved; otherwise, false. - + - Returns an enumerator that iterates through the collection. + A JSON constructor. - - A that can be used to iterate through the collection. - - + - Raises the event with the provided arguments. + A JSON object property. - Name of the property. - + - Raises the event with the provided arguments. + A comment. - Name of the property. - + - Returns the properties for this instance of a component. + An integer value. - - A that represents the properties for this component instance. - - + - Returns the properties for this instance of a component using the attribute array as a filter. + A float value. - An array of type that is used as a filter. - - A that represents the filtered properties for this component instance. - - + - Returns a collection of custom attributes for this instance of a component. + A string value. - - An containing the attributes for this object. - - + - Returns the class name of this instance of a component. + A boolean value. - - The class name of the object, or null if the class does not have a name. - - + - Returns the name of this instance of a component. + A null value. - - The name of the object, or null if the object does not have a name. - - + - Returns a type converter for this instance of a component. + An undefined value. - - A that is the converter for this object, or null if there is no for this object. - - + - Returns the default event for this instance of a component. + A date value. - - An that represents the default event for this object, or null if this object does not have events. - - + - Returns the default property for this instance of a component. + A raw JSON value. - - A that represents the default property for this object, or null if this object does not have properties. - - + - Returns an editor of the specified type for this instance of a component. + A collection of bytes value. - A that represents the editor for this object. - - An of the specified type that is the editor for this object, or null if the editor cannot be found. - - + - Returns the events for this instance of a component using the specified attribute array as a filter. + A Guid value. - An array of type that is used as a filter. - - An that represents the filtered events for this component instance. - - + - Returns the events for this instance of a component. + A Uri value. - - An that represents the events for this component instance. - - + - Returns an object that contains the property described by the specified property descriptor. + A TimeSpan value. - A that represents the property whose owner is to be found. - - An that represents the owner of the specified property. - - + - Returns the responsible for binding operations performed on this object. + Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. - The expression tree representation of the runtime value. - - The to bind this object. - - + - Gets the container's children tokens. + Initializes a new instance of the class writing to the given . - The container's children tokens. + The container being written to. - + - Occurs when a property value changes. + Initializes a new instance of the class. - + - Occurs when a property value is changing. + Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. - + - Gets the node type for this . + Closes this stream and the underlying stream. - The type. - + - Gets the with the specified key. + Writes the beginning of a Json object. - The with the specified key. - + - Gets or sets the with the specified property name. + Writes the beginning of a Json array. - - + - Represents a JSON array. + Writes the start of a constructor with the given name. - - - + The name of the constructor. - + - Initializes a new instance of the class. + Writes the end. + The token. - + - Initializes a new instance of the class from another object. + Writes the property name of a name/value pair on a Json object. - A object to copy from. + The name of the property. - + - Initializes a new instance of the class with the specified content. + Writes a value. + An error will raised if the value cannot be written as a single JSON token. - The contents of the array. + The value to write. - + - Initializes a new instance of the class with the specified content. + Writes a null value. - The contents of the array. - + - Loads an from a . + Writes an undefined value. - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - + - Load a from a string that contains JSON. + Writes raw JSON. - A that contains JSON. - A populated from the string that contains JSON. - - - + The raw JSON to write. - + - Creates a from an object. + Writes out a comment /*...*/ containing the specified text. - The object that will be used to create . - A with the values of the specified object + Text to place inside the comment. - + - Creates a from an object. + Writes a value. - The object that will be used to create . - The that will be used to read the object. - A with the values of the specified object + The value to write. - + - Writes this token to a . + Writes a value. - A into which this method will write. - A collection of which will be used when writing the token. + The value to write. - + - Determines the index of a specific item in the . + Writes a value. - The object to locate in the . - - The index of if found in the list; otherwise, -1. - + The value to write. - + - Inserts an item to the at the specified index. + Writes a value. - The zero-based index at which should be inserted. - The object to insert into the . - - is not a valid index in the . - The is read-only. + The value to write. - + - Removes the item at the specified index. + Writes a value. - The zero-based index of the item to remove. - - is not a valid index in the . - The is read-only. + The value to write. - + - Returns an enumerator that iterates through the collection. + Writes a value. - - A that can be used to iterate through the collection. - + The value to write. - + - Adds an item to the . + Writes a value. - The object to add to the . - The is read-only. + The value to write. - + - Removes all items from the . + Writes a value. - The is read-only. + The value to write. - + - Determines whether the contains a specific value. + Writes a value. - The object to locate in the . - - true if is found in the ; otherwise, false. - + The value to write. - + - Copies to. + Writes a value. - The array. - Index of the array. + The value to write. - + - Removes the first occurrence of a specific object from the . + Writes a value. - The object to remove from the . - - true if was successfully removed from the ; otherwise, false. This method also returns false if is not found in the original . - - The is read-only. + The value to write. - + - Gets the container's children tokens. + Writes a value. - The container's children tokens. + The value to write. - + - Gets the node type for this . + Writes a value. - The type. + The value to write. - + - Gets the with the specified key. + Writes a value. - The with the specified key. + The value to write. - + - Gets or sets the at the specified index. + Writes a value. - + The value to write. - + - Gets a value indicating whether the is read-only. + Writes a value. - true if the is read-only; otherwise, false. + The value to write. - + - Represents a reader that provides fast, non-cached, forward-only access to serialized Json data. + Writes a value. + The value to write. - + - Initializes a new instance of the class. + Writes a value. - The token to read from. + The value to write. - + - Reads the next JSON token from the stream as a . + Writes a value. - - A or a null reference if the next JSON token is null. This method will return null at the end of an array. - + The value to write. - + - Reads the next JSON token from the stream as a . + Writes a value. - A . This method will return null at the end of an array. + The value to write. - + - Reads the next JSON token from the stream as a . + Gets the token being writen. - A . This method will return null at the end of an array. + The token being writen. - + - Reads the next JSON token from the stream as a . + Specifies the member serialization options for the . - A . This method will return null at the end of an array. - + - Reads the next JSON token from the stream as a . + All public members are serialized by default. Members can be excluded using or . + This is the default member serialization mode. - A . This method will return null at the end of an array. - + - Reads the next JSON token from the stream as a . + Only members must be marked with or are serialized. + This member serialization mode can also be set by marking the class with . - A . This method will return null at the end of an array. - + - Reads the next JSON token from the stream. + All public and private fields are serialized. Members can be excluded using or . + This member serialization mode can also be set by marking the class with + and setting IgnoreSerializableAttribute on to false. - - true if the next token was read successfully; false if there are no more tokens to read. - - + - Represents a writer that provides a fast, non-cached, forward-only way of generating Json data. + Specifies missing member handling options for the . - + - Initializes a new instance of the class writing to the given . + Ignore a missing member and do not attempt to deserialize it. - The container being written to. - + - Initializes a new instance of the class. + Throw a when a missing member is encountered during deserialization. - + - Flushes whatever is in the buffer to the underlying streams and also flushes the underlying stream. + Specifies null value handling options for the . + + + + - + - Closes this stream and the underlying stream. + Include null values when serializing and deserializing objects. - + - Writes the beginning of a Json object. + Ignore null values when serializing and deserializing objects. - + - Writes the beginning of a Json array. + Specifies how object creation is handled by the . - + - Writes the start of a constructor with the given name. + Reuse existing objects, create new objects when needed. - The name of the constructor. - + - Writes the end. + Only reuse existing objects. - The token. - + - Writes the property name of a name/value pair on a Json object. + Always create new objects. - The name of the property. - + - Writes a value. - An error will raised if the value cannot be written as a single JSON token. + Specifies reference handling options for the . + Note that references cannot be preserved when a value is set via a non-default constructor such as types that implement ISerializable. - The value to write. + + + - + - Writes a null value. + Do not preserve references when serializing types. - + - Writes an undefined value. + Preserve references when serializing into a JSON object structure. - + - Writes raw JSON. + Preserve references when serializing into a JSON array structure. - The raw JSON to write. - + - Writes out a comment /*...*/ containing the specified text. + Preserve references when serializing. - Text to place inside the comment. - + - Writes a value. + Specifies reference loop handling options for the . - The value to write. - + - Writes a value. + Throw a when a loop is encountered. - The value to write. - + - Writes a value. + Ignore loop references and do not serialize. - The value to write. - + - Writes a value. + Serialize loop references. - The value to write. - + - Writes a value. + Indicating whether a property is required. - The value to write. - + - Writes a value. + The property is not required. The default state. - The value to write. - + - Writes a value. + The property must be defined in JSON but can be a null value. - The value to write. - + - Writes a value. + The property must be defined in JSON and cannot be a null value. - The value to write. - + - Writes a value. + Contains the JSON schema extension methods. - The value to write. - + - Writes a value. + Determines whether the is valid. - The value to write. + The source to test. + The schema to test with. + + true if the specified is valid; otherwise, false. + - + - Writes a value. + Determines whether the is valid. - The value to write. + The source to test. + The schema to test with. + When this method returns, contains any error messages generated while validating. + + true if the specified is valid; otherwise, false. + - + - Writes a value. + Validates the specified . - The value to write. + The source to test. + The schema to test with. - + - Writes a value. + Validates the specified . - The value to write. + The source to test. + The schema to test with. + The validation event handler. - + - Writes a value. + An in-memory representation of a JSON Schema. - The value to write. - + - Writes a value. + Initializes a new instance of the class. - The value to write. - + - Writes a value. + Reads a from the specified . - The value to write. + The containing the JSON Schema to read. + The object representing the JSON Schema. - + - Writes a value. + Reads a from the specified . - The value to write. + The containing the JSON Schema to read. + The to use when resolving schema references. + The object representing the JSON Schema. - + - Writes a value. + Load a from a string that contains schema JSON. - The value to write. + A that contains JSON. + A populated from the string that contains JSON. - + - Writes a value. + Parses the specified json. - The value to write. + The json. + The resolver. + A populated from the string that contains JSON. - + - Writes a value. + Writes this schema to a . - The value to write. + A into which this method will write. - + - Gets the token being writen. + Writes this schema to a using the specified . - The token being writen. + A into which this method will write. + The resolver used. - + - Represents a JSON property. + Returns a that represents the current . + + A that represents the current . + - + - Initializes a new instance of the class from another object. + Gets or sets the id. - A object to copy from. - + - Initializes a new instance of the class. + Gets or sets the title. - The property name. - The property content. - + - Initializes a new instance of the class. + Gets or sets whether the object is required. - The property name. - The property content. - + - Writes this token to a . + Gets or sets whether the object is read only. - A into which this method will write. - A collection of which will be used when writing the token. - + - Loads an from a . + Gets or sets whether the object is visible to users. - A that will be read for the content of the . - A that contains the JSON that was read from the specified . - + - Gets the container's children tokens. + Gets or sets whether the object is transient. - The container's children tokens. - + - Gets the property name. + Gets or sets the description of the object. - The property name. - + - Gets or sets the property value. + Gets or sets the types of values allowed by the object. - The property value. + The type. - + - Gets the node type for this . + Gets or sets the pattern. - The type. + The pattern. - + - Specifies the type of token. + Gets or sets the minimum length. + The minimum length. - + - No token type has been set. + Gets or sets the maximum length. + The maximum length. - + - A JSON object. + Gets or sets a number that the value should be divisble by. + A number that the value should be divisble by. - + - A JSON array. + Gets or sets the minimum. + The minimum. - + - A JSON constructor. + Gets or sets the maximum. + The maximum. - + - A JSON object property. + Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute. + A flag indicating whether the value can not equal the number defined by the "minimum" attribute. - + - A comment. + Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute. + A flag indicating whether the value can not equal the number defined by the "maximum" attribute. - + - An integer value. + Gets or sets the minimum number of items. + The minimum number of items. - + - A float value. + Gets or sets the maximum number of items. + The maximum number of items. - + - A string value. + Gets or sets the of items. + The of items. - + - A boolean value. + Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . + + true if items are validated using their array position; otherwise, false. + - + - A null value. + Gets or sets the of additional items. + The of additional items. - + - An undefined value. + Gets or sets a value indicating whether additional items are allowed. + + true if additional items are allowed; otherwise, false. + - + - A date value. + Gets or sets whether the array items must be unique. - + - A raw JSON value. + Gets or sets the of properties. + The of properties. - + - A collection of bytes value. + Gets or sets the of additional properties. + The of additional properties. - + - A Guid value. + Gets or sets the pattern properties. + The pattern properties. - + - A Uri value. + Gets or sets a value indicating whether additional properties are allowed. + + true if additional properties are allowed; otherwise, false. + - + - A TimeSpan value. + Gets or sets the required property if this property is present. + The required property if this property is present. - + - Contains the JSON schema extension methods. + Gets or sets the a collection of valid enum values allowed. + A collection of valid enum values allowed. - + - Determines whether the is valid. + Gets or sets disallowed types. - The source to test. - The schema to test with. - - true if the specified is valid; otherwise, false. - + The disallow types. - + - Determines whether the is valid. + Gets or sets the default value. - The source to test. - The schema to test with. - When this method returns, contains any error messages generated while validating. - - true if the specified is valid; otherwise, false. - + The default value. - + - Validates the specified . + Gets or sets the collection of that this schema extends. - The source to test. - The schema to test with. + The collection of that this schema extends. - + - Validates the specified . + Gets or sets the format. - The source to test. - The schema to test with. - The validation event handler. + The format. @@ -6845,6 +6906,54 @@ The path to the JSON where the error occurred. + + + Generates a from a specified . + + + + + Generate a from the specified type. + + The type to generate a from. + A generated from the specified type. + + + + Generate a from the specified type. + + The type to generate a from. + The used to resolve schema references. + A generated from the specified type. + + + + Generate a from the specified type. + + The type to generate a from. + Specify whether the generated root will be nullable. + A generated from the specified type. + + + + Generate a from the specified type. + + The type to generate a from. + The used to resolve schema references. + Specify whether the generated root will be nullable. + A generated from the specified type. + + + + Gets or sets how undefined schemas are handled by the serializer. + + + + + Gets or sets the contract resolver. + + The contract resolver. + Resolves from an id. @@ -6868,6 +6977,56 @@ The loaded schemas. + + + The value types allowed by the . + + + + + No type specified. + + + + + String type. + + + + + Float type. + + + + + Integer type. + + + + + Boolean type. + + + + + Object type. + + + + + Array type. + + + + + Null type. + + + + + Any type. + + Specifies undefined schema Id handling options for the . @@ -7141,10 +7300,49 @@ - Resolves the name of the property. + Resolves the name of the property. + + Name of the property. + The property name camel cased. + + + + Used to resolve references when serializing and deserializing JSON by the . + + + + + Resolves a reference to its object. + + The serialization context. + The reference to resolve. + The object that + + + + Gets the reference for the sepecified object. + + The serialization context. + The object to get a reference for. + The reference to the object. + + + + Determines whether the specified object is referenced. + + The serialization context. + The object to test for a reference. + + true if the specified object is referenced; otherwise, false. + + + + + Adds a reference to the specified object. - Name of the property. - The property name camel cased. + The serialization context. + The reference. + The object to reference. @@ -7169,820 +7367,800 @@ Specifies the name of the serialized object. Specifies the name of the serialized object. - - - Provides information surrounding an error. - - - - - Gets or sets the error. - - The error. - - - - Gets the original object that caused the error. - - The original object that caused the error. - - - - Gets the member that caused the error. - - The member that caused the error. - - - - Gets the path of the JSON location where the error occurred. - - The path of the JSON location where the error occurred. - - - - Gets or sets a value indicating whether this is handled. - - true if handled; otherwise, false. - - + - Contract details for a used by the . + Represents a trace writer that writes to the application's instances. - + - Initializes a new instance of the class. + Represents a trace writer. - The underlying type for the contract. - + - Gets the of the collection items. + Writes the specified trace level, message and optional exception. - The of the collection items. + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Gets a value indicating whether the collection type is a multidimensional array. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. - true if the collection type is a multidimensional array; otherwise, false. + The that will be used to filter the trace messages passed to the writer. - + - Handles serialization callback events. + Writes the specified trace level, message and optional exception. - The object that raised the callback event. - The streaming context. + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Handles serialization error callback events. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. - The object that raised the callback event. - The streaming context. - The error context. + + The that will be used to filter the trace messages passed to the writer. + - + - Sets extension data for an object during deserialization. + Get and set values for a using dynamic methods. - The object to set extension data on. - The extension data key. - The extension data value. - + - Gets extension data for an object during serialization. + Provides methods to get and set values. - The object to set extension data on. - + - Contract details for a used by the . + Sets the value. + The target to set the value on. + The value to set on the target. - + - Initializes a new instance of the class. + Gets the value. - The underlying type for the contract. + The target to get the value from. + The value. - + - Gets or sets the property name resolver. + Initializes a new instance of the class. - The property name resolver. + The member info. - + - Gets the of the dictionary keys. + Sets the value. - The of the dictionary keys. + The target to set the value on. + The value to set on the target. - + - Gets the of the dictionary values. + Gets the value. - The of the dictionary values. + The target to get the value from. + The value. - + - Maps a JSON property to a .NET member or constructor parameter. + Provides information surrounding an error. - + - Returns a that represents this instance. + Gets the error. - - A that represents this instance. - + The error. - + - Gets or sets the name of the property. + Gets the original object that caused the error. - The name of the property. + The original object that caused the error. - + - Gets or sets the type that declared this property. + Gets the member that caused the error. - The type that declared this property. + The member that caused the error. - + - Gets or sets the order of serialization and deserialization of a member. + Gets the path of the JSON location where the error occurred. - The numeric order of serialization or deserialization. + The path of the JSON location where the error occurred. - + - Gets or sets the name of the underlying member or parameter. + Gets or sets a value indicating whether this is handled. - The name of the underlying member or parameter. + true if handled; otherwise, false. - + - Gets the that will get and set the during serialization. + Provides data for the Error event. - The that will get and set the during serialization. - + - Gets or sets the type of the property. + Initializes a new instance of the class. - The type of the property. + The current object. + The error context. - + - Gets or sets the for the property. - If set this converter takes presidence over the contract converter for the property type. + Gets the current object the error event is being raised against. - The converter. + The current object the error event is being raised against. - + - Gets the member converter. + Gets the error context. - The member converter. + The error context. - + - Gets a value indicating whether this is ignored. + Get and set values for a using dynamic methods. - true if ignored; otherwise, false. - + - Gets a value indicating whether this is readable. + Initializes a new instance of the class. - true if readable; otherwise, false. + The member info. - + - Gets a value indicating whether this is writable. + Sets the value. - true if writable; otherwise, false. + The target to set the value on. + The value to set on the target. - + - Gets a value indicating whether this has a member attribute. + Gets the value. - true if has a member attribute; otherwise, false. + The target to get the value from. + The value. - + - Gets the default value. + Contract details for a used by the . - The default value. - + - Gets a value indicating whether this is required. + Contract details for a used by the . - A value indicating whether this is required. - + - Gets a value indicating whether this property preserves object references. + Contract details for a used by the . - - true if this instance is reference; otherwise, false. - - + - Gets the property null value handling. + Gets the underlying type for the contract. - The null value handling. + The underlying type for the contract. - + - Gets the property default value handling. + Gets or sets the type created during deserialization. - The default value handling. + The type created during deserialization. - + - Gets the property reference loop handling. + Gets or sets whether this type contract is serialized as a reference. - The reference loop handling. + Whether this type contract is serialized as a reference. - + - Gets the property object creation handling. + Gets or sets the default for this contract. - The object creation handling. + The converter. - + - Gets or sets the type name handling. + Gets or sets all methods called immediately after deserialization of the object. - The type name handling. + The methods called immediately after deserialization of the object. - + - Gets or sets a predicate used to determine whether the property should be serialize. + Gets or sets all methods called during deserialization of the object. - A predicate used to determine whether the property should be serialize. + The methods called during deserialization of the object. - + - Gets or sets a predicate used to determine whether the property should be serialized. + Gets or sets all methods called after serialization of the object graph. - A predicate used to determine whether the property should be serialized. + The methods called after serialization of the object graph. - + - Gets or sets an action used to set whether the property has been deserialized. + Gets or sets all methods called before serialization of the object. - An action used to set whether the property has been deserialized. + The methods called before serialization of the object. - + - Gets or sets the converter used when serializing the property's collection items. + Gets or sets all method called when an error is thrown during the serialization of the object. - The collection's items converter. + The methods called when an error is thrown during the serialization of the object. - + - Gets or sets whether this property's collection items are serialized as a reference. + Gets or sets the method called immediately after deserialization of the object. - Whether this property's collection items are serialized as a reference. + The method called immediately after deserialization of the object. - + - Gets or sets the the type name handling used when serializing the property's collection items. + Gets or sets the method called during deserialization of the object. - The collection's items type name handling. + The method called during deserialization of the object. - + - Gets or sets the the reference loop handling used when serializing the property's collection items. + Gets or sets the method called after serialization of the object graph. - The collection's items reference loop handling. + The method called after serialization of the object graph. - + - A collection of objects. + Gets or sets the method called before serialization of the object. + The method called before serialization of the object. - + - Initializes a new instance of the class. + Gets or sets the method called when an error is thrown during the serialization of the object. - The type. + The method called when an error is thrown during the serialization of the object. - + - When implemented in a derived class, extracts the key from the specified element. + Gets or sets the default creator method used to create the object. - The element from which to extract the key. - The key for the specified element. + The default creator method used to create the object. - + - Adds a object. + Gets or sets a value indicating whether the default creator is non public. - The property to add to the collection. + true if the default object creator is non-public; otherwise, false. - + - Gets the closest matching object. - First attempts to get an exact case match of propertyName and then - a case insensitive match. + Initializes a new instance of the class. - Name of the property. - A matching property if found. + The underlying type for the contract. - + - Gets a property by property name. + Gets or sets the default collection items . - The name of the property to get. - Type property name string comparison. - A matching property if found. + The converter. - + - Specifies missing member handling options for the . + Gets or sets a value indicating whether the collection items preserve object references. + true if collection items preserve object references; otherwise, false. - + - Ignore a missing member and do not attempt to deserialize it. + Gets or sets the collection item reference loop handling. + The reference loop handling. - + - Throw a when a missing member is encountered during deserialization. + Gets or sets the collection item type name handling. + The type name handling. - + - Specifies null value handling options for the . + Initializes a new instance of the class. - - - - + The underlying type for the contract. - + - Include null values when serializing and deserializing objects. + Gets the of the collection items. + The of the collection items. - + - Ignore null values when serializing and deserializing objects. + Gets a value indicating whether the collection type is a multidimensional array. + true if the collection type is a multidimensional array; otherwise, false. - + - Specifies reference loop handling options for the . + Handles serialization callback events. + The object that raised the callback event. + The streaming context. - + - Throw a when a loop is encountered. + Handles serialization error callback events. + The object that raised the callback event. + The streaming context. + The error context. - + - Ignore loop references and do not serialize. + Sets extension data for an object during deserialization. + The object to set extension data on. + The extension data key. + The extension data value. - + - Serialize loop references. + Gets extension data for an object during serialization. + The object to set extension data on. - + - An in-memory representation of a JSON Schema. + Contract details for a used by the . - + - Initializes a new instance of the class. + Initializes a new instance of the class. + The underlying type for the contract. - + - Reads a from the specified . + Gets or sets the property name resolver. - The containing the JSON Schema to read. - The object representing the JSON Schema. + The property name resolver. - + - Reads a from the specified . + Gets the of the dictionary keys. - The containing the JSON Schema to read. - The to use when resolving schema references. - The object representing the JSON Schema. + The of the dictionary keys. - + - Load a from a string that contains schema JSON. + Gets the of the dictionary values. - A that contains JSON. - A populated from the string that contains JSON. + The of the dictionary values. - + - Parses the specified json. + Contract details for a used by the . - The json. - The resolver. - A populated from the string that contains JSON. - + - Writes this schema to a . + Initializes a new instance of the class. - A into which this method will write. + The underlying type for the contract. - + - Writes this schema to a using the specified . + Gets the object's properties. - A into which this method will write. - The resolver used. + The object's properties. - + - Returns a that represents the current . + Gets or sets the property name resolver. - - A that represents the current . - + The property name resolver. - + - Gets or sets the id. + Contract details for a used by the . - + - Gets or sets the title. + Initializes a new instance of the class. + The underlying type for the contract. - + - Gets or sets whether the object is required. + Gets or sets the ISerializable object constructor. + The ISerializable object constructor. - + - Gets or sets whether the object is read only. + Contract details for a used by the . - + - Gets or sets whether the object is visible to users. + Initializes a new instance of the class. + The underlying type for the contract. - + - Gets or sets whether the object is transient. + Contract details for a used by the . - + - Gets or sets the description of the object. + Initializes a new instance of the class. + The underlying type for the contract. - + - Gets or sets the types of values allowed by the object. + Gets or sets the object member serialization. - The type. + The member object serialization. - + - Gets or sets the pattern. + Gets or sets a value that indicates whether the object's properties are required. - The pattern. + + A value indicating whether the object's properties are required. + - + - Gets or sets the minimum length. + Gets the object's properties. - The minimum length. + The object's properties. - + - Gets or sets the maximum length. + Gets the constructor parameters required for any non-default constructor - The maximum length. - + - Gets or sets a number that the value should be divisble by. + Gets or sets the override constructor used to create the object. + This is set when a constructor is marked up using the + JsonConstructor attribute. - A number that the value should be divisble by. + The override constructor. - + - Gets or sets the minimum. + Gets or sets the parametrized constructor used to create the object. - The minimum. + The parametrized constructor. - + - Gets or sets the maximum. + Gets or sets the extension data setter. - The maximum. - + - Gets or sets a flag indicating whether the value can not equal the number defined by the "minimum" attribute. + Gets or sets the extension data getter. - A flag indicating whether the value can not equal the number defined by the "minimum" attribute. - + - Gets or sets a flag indicating whether the value can not equal the number defined by the "maximum" attribute. + Contract details for a used by the . - A flag indicating whether the value can not equal the number defined by the "maximum" attribute. - + - Gets or sets the minimum number of items. + Initializes a new instance of the class. - The minimum number of items. + The underlying type for the contract. - + - Gets or sets the maximum number of items. + Maps a JSON property to a .NET member or constructor parameter. - The maximum number of items. - + - Gets or sets the of items. + Returns a that represents this instance. - The of items. + + A that represents this instance. + - + - Gets or sets a value indicating whether items in an array are validated using the instance at their array position from . + Gets or sets the name of the property. - - true if items are validated using their array position; otherwise, false. - + The name of the property. - + - Gets or sets the of additional items. + Gets or sets the type that declared this property. - The of additional items. + The type that declared this property. - + - Gets or sets a value indicating whether additional items are allowed. + Gets or sets the order of serialization and deserialization of a member. - - true if additional items are allowed; otherwise, false. - + The numeric order of serialization or deserialization. - + - Gets or sets whether the array items must be unique. + Gets or sets the name of the underlying member or parameter. + The name of the underlying member or parameter. - + - Gets or sets the of properties. + Gets the that will get and set the during serialization. - The of properties. + The that will get and set the during serialization. - + - Gets or sets the of additional properties. + Gets or sets the type of the property. - The of additional properties. + The type of the property. - + - Gets or sets the pattern properties. + Gets or sets the for the property. + If set this converter takes presidence over the contract converter for the property type. - The pattern properties. + The converter. - + - Gets or sets a value indicating whether additional properties are allowed. + Gets or sets the member converter. - - true if additional properties are allowed; otherwise, false. - + The member converter. - + - Gets or sets the required property if this property is present. + Gets or sets a value indicating whether this is ignored. - The required property if this property is present. + true if ignored; otherwise, false. - + - Gets or sets the a collection of valid enum values allowed. + Gets or sets a value indicating whether this is readable. - A collection of valid enum values allowed. + true if readable; otherwise, false. - + - Gets or sets disallowed types. + Gets or sets a value indicating whether this is writable. - The disallow types. + true if writable; otherwise, false. - + - Gets or sets the default value. + Gets or sets a value indicating whether this has a member attribute. - The default value. + true if has a member attribute; otherwise, false. - + - Gets or sets the collection of that this schema extends. + Gets the default value. - The collection of that this schema extends. + The default value. - + - Gets or sets the format. + Gets or sets a value indicating whether this is required. - The format. + A value indicating whether this is required. - + - Generates a from a specified . + Gets or sets a value indicating whether this property preserves object references. + + true if this instance is reference; otherwise, false. + - + - Generate a from the specified type. + Gets or sets the property null value handling. - The type to generate a from. - A generated from the specified type. + The null value handling. - + - Generate a from the specified type. + Gets or sets the property default value handling. - The type to generate a from. - The used to resolve schema references. - A generated from the specified type. + The default value handling. - + - Generate a from the specified type. + Gets or sets the property reference loop handling. - The type to generate a from. - Specify whether the generated root will be nullable. - A generated from the specified type. + The reference loop handling. - + - Generate a from the specified type. + Gets or sets the property object creation handling. - The type to generate a from. - The used to resolve schema references. - Specify whether the generated root will be nullable. - A generated from the specified type. + The object creation handling. - + - Gets or sets how undefined schemas are handled by the serializer. + Gets or sets or sets the type name handling. + The type name handling. - + - Gets or sets the contract resolver. + Gets or sets a predicate used to determine whether the property should be serialize. - The contract resolver. + A predicate used to determine whether the property should be serialize. - + - The value types allowed by the . + Gets or sets a predicate used to determine whether the property should be serialized. + A predicate used to determine whether the property should be serialized. - + - No type specified. + Gets or sets an action used to set whether the property has been deserialized. + An action used to set whether the property has been deserialized. - + - String type. + Gets or sets the converter used when serializing the property's collection items. + The collection's items converter. - + - Float type. + Gets or sets whether this property's collection items are serialized as a reference. + Whether this property's collection items are serialized as a reference. - + - Integer type. + Gets or sets the the type name handling used when serializing the property's collection items. + The collection's items type name handling. - + - Boolean type. + Gets or sets the the reference loop handling used when serializing the property's collection items. + The collection's items reference loop handling. - + - Object type. + A collection of objects. - + - Array type. + Initializes a new instance of the class. + The type. - + - Null type. + When implemented in a derived class, extracts the key from the specified element. + The element from which to extract the key. + The key for the specified element. - + - Any type. + Adds a object. + The property to add to the collection. - + - Contract details for a used by the . + Gets the closest matching object. + First attempts to get an exact case match of propertyName and then + a case insensitive match. + Name of the property. + A matching property if found. - + - Initializes a new instance of the class. + Gets a property by property name. - The underlying type for the contract. + The name of the property to get. + Type property name string comparison. + A matching property if found. - + - Gets or sets the object member serialization. + Contract details for a used by the . - The member object serialization. - + - Gets or sets a value that indicates whether the object's properties are required. + Initializes a new instance of the class. - - A value indicating whether the object's properties are required. - + The underlying type for the contract. - + - Gets the object's properties. + Represents a trace writer that writes to memory. When the trace message limit is + reached then old trace messages will be removed as new messages are added. - The object's properties. - + - Gets the constructor parameters required for any non-default constructor + Initializes a new instance of the class. - + - Gets or sets the override constructor used to create the object. - This is set when a constructor is marked up using the - JsonConstructor attribute. + Writes the specified trace level, message and optional exception. - The override constructor. + The at which to write this trace. + The trace message. + The trace exception. This parameter is optional. - + - Gets or sets the parametrized constructor used to create the object. + Returns an enumeration of the most recent trace messages. - The parametrized constructor. + An enumeration of the most recent trace messages. - + - Gets or sets the extension data setter. + Returns a of the most recent trace messages. + + A of the most recent trace messages. + - + - Gets or sets the extension data getter. + Gets the that will be used to filter the trace messages passed to the writer. + For example a filter level of Info will exclude Verbose messages and include Info, + Warning and Error messages. + + The that will be used to filter the trace messages passed to the writer. + - + - Contract details for a used by the . + Represents a method that constructs an object. + The object type to create. - + - Initializes a new instance of the class. + When applied to a method, specifies that the method is called when an error occurs serializing an object. - The underlying type for the contract. @@ -8009,42 +8187,25 @@ The target to get the value from. The value. - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Helper method for generating a MetaObject which calls a - specific method on Dynamic that returns a result - - - + - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. + Specifies how strings are escaped when writing JSON text. - + - Helper method for generating a MetaObject which calls a - specific method on Dynamic, but uses one of the arguments for - the result. + Only control characters (e.g. newline) are escaped. - + - Returns a Restrictions object which includes our current restrictions merged - with a restriction limiting our type + All non-ASCII and control characters (e.g. newline) are escaped. - + - Represents a method that constructs an object. + HTML (<, >, &, ', ") and control characters (e.g. newline) are escaped. - The object type to create. @@ -8076,6 +8237,32 @@ Include the .NET type name when the type of the object being serialized is not the same as its declared type. + + + Determines whether the collection is null or empty. + + The collection. + + true if the collection is null or empty; otherwise, false. + + + + + Adds the elements of the specified collection to the specified generic IList. + + The list to add to. + The collection of elements to add. + + + + Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer. + + The type of the elements of source. + A sequence in which to locate a value. + The object to locate in the sequence + An equality comparer to compare values. + The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1. + Converts the value to the specified type. @@ -8110,144 +8297,44 @@ is returned if assignable to the target type. - - - Gets a dictionary of the names and values of an Enum type. - - - - - - Gets a dictionary of the names and values of an Enum type. - - The enum type to get names and values for. - - - - - Specifies the type of Json token. - - - - - This is returned by the if a method has not been called. - - - - - An object start token. - - - - - An array start token. - - - - - A constructor start token. - - - - - An object property name. - - - - - A comment. - - - - - Raw JSON. - - - - - An integer. - - - - - A float. - - - - - A string. - - - - - A boolean. - - - - - A null token. - - - - - An undefined token. - - - - - An object end token. - - - - - An array end token. - - - - - A constructor end token. - - - + - A Date. + Helper method for generating a MetaObject which calls a + specific method on Dynamic that returns a result - + - Byte data. + Helper method for generating a MetaObject which calls a + specific method on Dynamic, but uses one of the arguments for + the result. - + - Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. + Helper method for generating a MetaObject which calls a + specific method on Dynamic, but uses one of the arguments for + the result. - + - Determines whether the collection is null or empty. + Returns a Restrictions object which includes our current restrictions merged + with a restriction limiting our type - The collection. - - true if the collection is null or empty; otherwise, false. - - + - Adds the elements of the specified collection to the specified generic IList. + Gets a dictionary of the names and values of an Enum type. - The list to add to. - The collection of elements to add. + - + - Returns the index of the first occurrence in a sequence by using a specified IEqualityComparer. + Gets a dictionary of the names and values of an Enum type. - The type of the elements of source. - A sequence in which to locate a value. - The object to locate in the sequence - An equality comparer to compare values. - The zero-based index of the first occurrence of value within the entire sequence, if found; otherwise, –1. + The enum type to get names and values for. + @@ -8318,6 +8405,11 @@ true if the specified MemberInfo can be set; otherwise, false. + + + Builds a string. Unlike StringBuilder this class lets you reuse it's internal buffer. + + Determines whether the string is all white space. Empty string will return false. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.dll new file mode 100644 index 00000000000..2e538bdf1f7 Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.xml similarity index 97% rename from dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.xml index e1687d9c769..49260819bb4 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/netcore45/Newtonsoft.Json.xml @@ -133,6 +133,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1187,6 +1196,38 @@ true if this instance can convert the specified object type; otherwise, false. + + + Converts a F# discriminated union type to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts an ExpandoObject to and from JSON. @@ -1291,6 +1332,38 @@ The calling serializer. The object value. + + + Converts a to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts a to and from JSON. @@ -1360,6 +1433,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1393,6 +1471,12 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + Converts a to and from a string (e.g. "1.2.3.4"). @@ -1545,6 +1629,28 @@ Time zone information should be preserved when converting. + + + Specifies float format handling options when writing special floating point numbers, e.g. , + and with . + + + + + Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". + + + + + Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. + Note that this will produce non-valid JSON. + + + + + Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. + + Specifies default value handling options for the . @@ -1580,28 +1686,6 @@ and sets members to their default value when deserializing. - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. - - Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. @@ -2033,6 +2117,22 @@ A JSON string representation of the object. + + + Serializes the specified object to a JSON string using a type, formatting and . + + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + + Serializes the specified object to a JSON string using formatting and . @@ -4503,28 +4603,41 @@ - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - The that matches the object path or a null reference if no matching token is found. + A , or null. - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . + + + + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + An that contains the selected elements. + + + + Selects a collection of elements using a JPath expression. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. @@ -5289,6 +5402,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -5319,6 +5438,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -6772,50 +6897,6 @@ Name of the property. The property name camel cased. - - - Get and set values for a using dynamic methods. - - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - Used to resolve references when serializing and deserializing JSON by the . @@ -6885,7 +6966,7 @@ - Gets or sets the error. + Gets the error. The error. @@ -6937,6 +7018,50 @@ The error context. + + + Get and set values for a using dynamic methods. + + + + + Provides methods to get and set values. + + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + + + + Initializes a new instance of the class. + + The member info. + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + Represents a trace writer. @@ -7338,31 +7463,31 @@ - Gets the member converter. + Gets or sets the member converter. The member converter. - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether this is ignored. true if ignored; otherwise, false. - Gets a value indicating whether this is readable. + Gets or sets a value indicating whether this is readable. true if readable; otherwise, false. - Gets a value indicating whether this is writable. + Gets or sets a value indicating whether this is writable. true if writable; otherwise, false. - Gets a value indicating whether this has a member attribute. + Gets or sets a value indicating whether this has a member attribute. true if has a member attribute; otherwise, false. @@ -7374,13 +7499,13 @@ - Gets a value indicating whether this is required. + Gets or sets a value indicating whether this is required. A value indicating whether this is required. - Gets a value indicating whether this property preserves object references. + Gets or sets a value indicating whether this property preserves object references. true if this instance is reference; otherwise, false. @@ -7388,31 +7513,31 @@ - Gets the property null value handling. + Gets or sets the property null value handling. The null value handling. - Gets the property default value handling. + Gets or sets the property default value handling. The default value handling. - Gets the property reference loop handling. + Gets or sets the property reference loop handling. The reference loop handling. - Gets the property object creation handling. + Gets or sets the property object creation handling. The object creation handling. - Gets or sets the type name handling. + Gets or sets or sets the type name handling. The type name handling. @@ -7510,6 +7635,42 @@ The underlying type for the contract. + + + Represents a method that constructs an object. + + The object type to create. + + + + When applied to a method, specifies that the method is called when an error occurs serializing an object. + + + + + Get and set values for a using reflection. + + + + + Initializes a new instance of the class. + + The member info. + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + Represents a trace writer that writes to memory. When the trace message limit is @@ -7553,42 +7714,6 @@ The that will be used to filter the trace messages passed to the writer. - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - Specifies how strings are escaped when writing JSON text. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.dll new file mode 100644 index 00000000000..b819428456f Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.xml index 07bb6dcb5ff..2025d473e8a 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/portable-net40+sl4+wp7+win8/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/portable-net40+sl5+wp80+win8+monotouch+monoandroid/Newtonsoft.Json.xml @@ -133,6 +133,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1187,6 +1196,38 @@ true if this instance can convert the specified object type; otherwise, false. + + + Converts a F# discriminated union type to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts a to and from the ISO 8601 date format (e.g. 2008-04-12T12:53Z). @@ -1320,6 +1361,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1353,6 +1399,12 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + Converts a to and from a string (e.g. "1.2.3.4"). @@ -1934,6 +1986,22 @@ A JSON string representation of the object. + + + Serializes the specified object to a JSON string using a type, formatting and . + + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + + Serializes the specified object to a JSON string using formatting and . @@ -4253,28 +4321,41 @@ - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - The that matches the object path or a null reference if no matching token is found. + A , or null. - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . + + + + Selects a collection of elements using a JPath expression. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. + An that contains the selected elements. + + + + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. @@ -5001,6 +5082,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -5031,6 +5118,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -6543,7 +6636,7 @@ - Gets or sets the error. + Gets the error. The error. @@ -6992,31 +7085,31 @@ - Gets the member converter. + Gets or sets the member converter. The member converter. - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether this is ignored. true if ignored; otherwise, false. - Gets a value indicating whether this is readable. + Gets or sets a value indicating whether this is readable. true if readable; otherwise, false. - Gets a value indicating whether this is writable. + Gets or sets a value indicating whether this is writable. true if writable; otherwise, false. - Gets a value indicating whether this has a member attribute. + Gets or sets a value indicating whether this has a member attribute. true if has a member attribute; otherwise, false. @@ -7028,13 +7121,13 @@ - Gets a value indicating whether this is required. + Gets or sets a value indicating whether this is required. A value indicating whether this is required. - Gets a value indicating whether this property preserves object references. + Gets or sets a value indicating whether this property preserves object references. true if this instance is reference; otherwise, false. @@ -7042,31 +7135,31 @@ - Gets the property null value handling. + Gets or sets the property null value handling. The null value handling. - Gets the property default value handling. + Gets or sets the property default value handling. The default value handling. - Gets the property reference loop handling. + Gets or sets the property reference loop handling. The reference loop handling. - Gets the property object creation handling. + Gets or sets the property object creation handling. The object creation handling. - Gets or sets the type name handling. + Gets or sets or sets the type name handling. The type name handling. diff --git a/dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll b/dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll new file mode 100644 index 00000000000..7858e954a39 Binary files /dev/null and b/dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.dll differ diff --git a/dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.xml b/dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml similarity index 98% rename from dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.xml rename to dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml index 5638e0c4692..4a5bfa888f5 100644 --- a/dep/Newtonsoft.Json.5.0.8/lib/netcore45/Newtonsoft.Json.xml +++ b/dep/Newtonsoft.Json.6.0.1/lib/portable-net45+wp80+win8/Newtonsoft.Json.xml @@ -133,6 +133,15 @@ the reader is closed; otherwise false. The default is true. + + + Gets or sets a value indicating whether multiple pieces of JSON content can + be read from a continuous stream without erroring. + + + true to support reading multiple pieces of JSON content; otherwise false. The default is false. + + Gets the quotation mark character used to enclose the value of a string. @@ -1187,6 +1196,38 @@ true if this instance can convert the specified object type; otherwise, false. + + + Converts a F# discriminated union type to and from JSON. + + + + + Writes the JSON representation of the object. + + The to write to. + The value. + The calling serializer. + + + + Reads the JSON representation of the object. + + The to read from. + Type of the object. + The existing value of object being read. + The calling serializer. + The object value. + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + Converts an ExpandoObject to and from JSON. @@ -1291,38 +1332,6 @@ The calling serializer. The object value. - - - Converts a to and from JSON. - - - - - Writes the JSON representation of the object. - - The to write to. - The value. - The calling serializer. - - - - Reads the JSON representation of the object. - - The to read from. - Type of the object. - The existing value of object being read. - The calling serializer. - The object value. - - - - Determines whether this instance can convert the specified object type. - - Type of the object. - - true if this instance can convert the specified object type; otherwise, false. - - Converts a to and from JSON. @@ -1392,6 +1401,11 @@ Converts an to and from its name string value. + + + Initializes a new instance of the class. + + Writes the JSON representation of the object. @@ -1425,6 +1439,12 @@ true if the written enum text will be camel case; otherwise, false. + + + Gets or sets a value indicating whether integer values are allowed. + + true if integers are allowed; otherwise, false. + Converts a to and from a string (e.g. "1.2.3.4"). @@ -1577,28 +1597,6 @@ Time zone information should be preserved when converting. - - - Specifies float format handling options when writing special floating point numbers, e.g. , - and with . - - - - - Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". - - - - - Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. - Note that this will produce non-valid JSON. - - - - - Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. - - Specifies default value handling options for the . @@ -1634,6 +1632,28 @@ and sets members to their default value when deserializing. + + + Specifies float format handling options when writing special floating point numbers, e.g. , + and with . + + + + + Write special floating point values as strings in JSON, e.g. "NaN", "Infinity", "-Infinity". + + + + + Write special floating point values as symbols in JSON, e.g. NaN, Infinity, -Infinity. + Note that this will produce non-valid JSON. + + + + + Write special floating point values as the property's default value in JSON, e.g. 0.0 for a property, null for a property. + + Specifies how floating point numbers, e.g. 1.0 and 9.9, are parsed when reading JSON text. @@ -2065,6 +2085,22 @@ A JSON string representation of the object. + + + Serializes the specified object to a JSON string using a type, formatting and . + + The object to serialize. + The used to serialize the object. + If this is null, default serialization settings will be is used. + + The type of the value being serialized. + This parameter is used when is Auto to write out the type name if the type of the value does not match. + Specifing the type is optional. + + + A JSON string representation of the object. + + Serializes the specified object to a JSON string using formatting and . @@ -4535,28 +4571,41 @@ - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - The that matches the object path or a null reference if no matching token is found. + A , or null. - Selects the token that matches the object path. + Selects a using a JPath expression. Selects the token that matches the object path. + + + A that contains a JPath expression. + + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + A . + + + + Selects a collection of elements using a JPath expression. + + + A that contains a JPath expression. + + An that contains the selected elements. + + + + Selects a collection of elements using a JPath expression. - The object path from the current to the - to be returned. This must be a string of property names or array indexes separated - by periods, such as Tables[0].DefaultView[0].Price in C# or - Tables(0).DefaultView(0).Price in Visual Basic. + A that contains a JPath expression. - A flag to indicate whether an error should be thrown if no token is found. - The that matches the object path. + A flag to indicate whether an error should be thrown if no tokens are found when evaluating part of the expression. + An that contains the selected elements. @@ -5321,6 +5370,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -5351,6 +5406,12 @@ The value. + + + Initializes a new instance of the class with the given value. + + The value. + Initializes a new instance of the class with the given value. @@ -6804,6 +6865,50 @@ Name of the property. The property name camel cased. + + + Get and set values for a using dynamic methods. + + + + + Provides methods to get and set values. + + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + + + + Initializes a new instance of the class. + + The member info. + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + Used to resolve references when serializing and deserializing JSON by the . @@ -6873,7 +6978,7 @@ - Gets or sets the error. + Gets the error. The error. @@ -6925,50 +7030,6 @@ The error context. - - - Get and set values for a using dynamic methods. - - - - - Provides methods to get and set values. - - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - Represents a trace writer. @@ -7370,31 +7431,31 @@ - Gets the member converter. + Gets or sets the member converter. The member converter. - Gets a value indicating whether this is ignored. + Gets or sets a value indicating whether this is ignored. true if ignored; otherwise, false. - Gets a value indicating whether this is readable. + Gets or sets a value indicating whether this is readable. true if readable; otherwise, false. - Gets a value indicating whether this is writable. + Gets or sets a value indicating whether this is writable. true if writable; otherwise, false. - Gets a value indicating whether this has a member attribute. + Gets or sets a value indicating whether this has a member attribute. true if has a member attribute; otherwise, false. @@ -7406,13 +7467,13 @@ - Gets a value indicating whether this is required. + Gets or sets a value indicating whether this is required. A value indicating whether this is required. - Gets a value indicating whether this property preserves object references. + Gets or sets a value indicating whether this property preserves object references. true if this instance is reference; otherwise, false. @@ -7420,31 +7481,31 @@ - Gets the property null value handling. + Gets or sets the property null value handling. The null value handling. - Gets the property default value handling. + Gets or sets the property default value handling. The default value handling. - Gets the property reference loop handling. + Gets or sets the property reference loop handling. The reference loop handling. - Gets the property object creation handling. + Gets or sets the property object creation handling. The object creation handling. - Gets or sets the type name handling. + Gets or sets or sets the type name handling. The type name handling. @@ -7542,42 +7603,6 @@ The underlying type for the contract. - - - Represents a method that constructs an object. - - The object type to create. - - - - When applied to a method, specifies that the method is called when an error occurs serializing an object. - - - - - Get and set values for a using reflection. - - - - - Initializes a new instance of the class. - - The member info. - - - - Sets the value. - - The target to set the value on. - The value to set on the target. - - - - Gets the value. - - The target to get the value from. - The value. - Represents a trace writer that writes to memory. When the trace message limit is @@ -7621,6 +7646,42 @@ The that will be used to filter the trace messages passed to the writer. + + + Represents a method that constructs an object. + + The object type to create. + + + + When applied to a method, specifies that the method is called when an error occurs serializing an object. + + + + + Get and set values for a using reflection. + + + + + Initializes a new instance of the class. + + The member info. + + + + Sets the value. + + The target to set the value on. + The value to set on the target. + + + + Gets the value. + + The target to get the value from. + The value. + Specifies how strings are escaped when writing JSON text. diff --git a/dep/Newtonsoft.Json.5.0.8/tools/install.ps1 b/dep/Newtonsoft.Json.6.0.1/tools/install.ps1 similarity index 100% rename from dep/Newtonsoft.Json.5.0.8/tools/install.ps1 rename to dep/Newtonsoft.Json.6.0.1/tools/install.ps1 diff --git a/dep/repositories.config b/dep/repositories.config index 2cb419a2515..ee09227463b 100644 --- a/dep/repositories.config +++ b/dep/repositories.config @@ -4,7 +4,6 @@ - @@ -12,6 +11,7 @@ + diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj index a1d5a46d93f..e1fe83df2bd 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj @@ -48,7 +48,7 @@ ..\..\..\dep\CsQuery.1.3.4\lib\net40\CsQuery.dll - ..\..\..\dep\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll ..\..\..\dep\ShellProgressBar.1.0.0.0\lib\NET4\ShellProgressBar.dll diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs index 79050b3c2cf..2972e339bc2 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs @@ -146,13 +146,19 @@ public IEnumerable CsharpMethods this.Url.Params = new Dictionary(); } queryStringParamName = this.CsharpMethodName + "QueryString"; - - - + var paraIndent = "\r\n\t\t///"; + var explanationOfT = + paraIndent + " - If T is of type byte[] deserialization will be shortcircuited" + + paraIndent + + " - If T is of type VoidResponse the response stream will be ignored completely"; var apiMethod = new CsharpMethod { QueryStringParamName = queryStringParamName, - ReturnType = "ElasticsearchResponse", + ReturnType = "ElasticsearchResponse", + ReturnTypeGeneric = "", + ReturnDescription = + "ElasticsearchResponse<T> holding the reponse body deserialized as T." + + explanationOfT, FullName = methodName, HttpMethod = method, Documentation = this.Documentation, @@ -164,15 +170,69 @@ public IEnumerable CsharpMethods args = args.Concat(new[] { - "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> queryString = null" - }); + "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> queryString = null", + "object deserializationState = null" + }).ToList(); apiMethod.Arguments = string.Join(", ", args); + yield return apiMethod; + + apiMethod = new CsharpMethod + { + QueryStringParamName = queryStringParamName, + ReturnType = "Task>", + ReturnTypeGeneric = "", + ReturnDescription = + "A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T." + + explanationOfT, + FullName = methodName + "Async", + HttpMethod = method, + Documentation = this.Documentation, + Arguments = string.Join(", ", args), + Path = path, + Parts = parts, + Url = this.Url + }; + ApiGenerator.PatchMethod(apiMethod); + yield return apiMethod; + + //No need for deserialization state when returning dynamicdictionary + args = args.Take(args.Count() - 1).ToList(); + var explanationOfDynamic = + paraIndent + + " - Dynamic dictionary is a special dynamic type that allows json to be traversed safely" + + paraIndent + + " - i.e result.Response.hits.hits[0].property.nested[\"nested_deeper\"]" + + paraIndent + + " - can be safely dispatched to a nullable type even if intermediate properties do not exist"; + + apiMethod = new CsharpMethod + { + QueryStringParamName = queryStringParamName, + ReturnType = "ElasticsearchResponse", + ReturnTypeGeneric = null, + ReturnDescription = + "ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary" + + explanationOfDynamic, + FullName = methodName, + HttpMethod = method, + Documentation = this.Documentation, + Arguments = string.Join(", ", args), + Path = path, + Parts = parts, + Url = this.Url + }; + ApiGenerator.PatchMethod(apiMethod); yield return apiMethod; + apiMethod = new CsharpMethod { QueryStringParamName = queryStringParamName, - ReturnType = "Task", + ReturnType = "Task>", + ReturnTypeGeneric = null, + ReturnDescription = + "Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary" + + explanationOfDynamic, FullName = methodName + "Async", HttpMethod = method, Documentation = this.Documentation, diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs index 031bb416172..6247eeebae1 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs @@ -5,6 +5,8 @@ namespace CodeGeneration.LowLevelClient.Domain public class CsharpMethod { public string ReturnType { get; set; } + public string ReturnTypeGeneric { get; set; } + public string ReturnDescription { get; set; } public string FullName { get; set; } public string QueryStringParamName { get; set; } public string DescriptorType { get; set; } diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml index c89bea83673..5c3b17467a2 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml @@ -34,14 +34,22 @@ namespace Elasticsearch.Net var patchedUrl = Regex.Replace(url, @"{\w+}", (m) => "{" + (++i).ToString(CultureInfo.InvariantCulture) +"}"); - ///@method.HttpMethod @method.Path - ///
@method.Documentation
+ ///Represents a @method.HttpMethod on @method.Path + ///Returns: @Raw(method.ReturnDescription) + ///See also: @method.Documentation /// foreach (var part in method.Parts) { @Raw("///")@part.Description@Raw("") } - public @Raw(method.ReturnType) @(method.FullName)(@Raw(method.Arguments)) + @Raw("///Optional function to specify any additional querystring parameters for the request.") + if (!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric)) + { + @Raw("///Optional state that will be passed to the deserialization call for the response") + } + @Raw("///"+method.ReturnDescription) + ///@Raw("") + public @Raw(method.ReturnType) @(method.FullName)@(Raw(method.ReturnTypeGeneric))(@Raw(method.Arguments)) { @foreach (ApiUrlPart part in method.Parts.Where(p=>p.Name != "body").ToList()) { @@ -49,7 +57,7 @@ namespace Elasticsearch.Net } @if (method.Parts.Any()) { - var url = "@(patchedUrl)".F(@string.Join(", ", method.Parts.Where(p=>p.Name != "body").Select(p=> "Encoded(" + p.Name +")" ))); + var url = "@(patchedUrl)".F(@string.Join(", ", method.Parts.Where(p=>p.Name != "body").Select(p=> "Encoded(" + p.Name +")" ))); } else { @@ -61,10 +69,17 @@ namespace Elasticsearch.Net var qs = queryString(new @(method.QueryStringParamName)()); if (qs != null) nv = this.ToNameValueCollection(qs); } - @{ - string requestMethod = method.ReturnType.StartsWith("Task<") ? "DoRequestAsync" : "DoRequest"; + @{ + bool isAsync = method.ReturnType.StartsWith("Task<"); + string requestMethod = isAsync ? "DoRequestAsync" : "DoRequest"; + bool wrap = method.ReturnTypeGeneric == null; } - return this.@(requestMethod)("@method.HttpMethod", url@(method.Parts.Any(pp=>pp.Name == "body") ? ", body" : ", data: null"), queryString: nv); + return @(wrap ? "ElasticsearchResponse.Wrap"+ (isAsync ? "Async" : "") +"(" : "")this.@(requestMethod)@(Raw(method.ReturnTypeGeneric ?? ">"))("@method.HttpMethod", url@(method.Parts.Any(pp=>pp.Name == "body") ? ", body" : ", data: null"), + queryString: nv + @if(!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric)) + { + , deserializationState: deserializationState + } )@(wrap ? ")" : ""); } } diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml index a7e9eeaa976..bca49c16fdb 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml @@ -20,9 +20,9 @@ namespace Elasticsearch.Net ///
public interface IElasticsearchClient { - IConnection Connection { get; } - IConnectionConfigurationValues Settings { get; } - IElasticsearchSerializer Serializer { get; } + //IConnection Connection { get; } + //IConnectionConfigurationValues Settings { get; } + //IElasticsearchSerializer Serializer { get; } @foreach(var kv in Model.Endpoints) { @@ -31,14 +31,23 @@ namespace Elasticsearch.Net foreach(var method in endpoint.GetCsharpMethods()) { - ///@method.HttpMethod @method.Path - ///
@method.Documentation
+ ///Represents a @method.HttpMethod on @method.Path + ///Returns: @Raw(method.ReturnDescription) + ///See also: @method.Documentation /// @foreach (var part in method.Parts) { @Raw("///")@part.Description@Raw("") } - @Raw(method.ReturnType) @(method.FullName)(@Raw(method.Arguments)); + @Raw("///Optional function to specify any additional querystring parameters for the request.") + @if (!string.IsNullOrWhiteSpace(method.ReturnTypeGeneric)) + { + @Raw("///Optional state that will be passed to the deserialization call for the response") + } + @Raw("///"+method.ReturnDescription) + ///@Raw("") + + @Raw(method.ReturnType) @(method.FullName)@(Raw(method.ReturnTypeGeneric))(@Raw(method.Arguments)); } } diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml index b67c6a10aa1..409d33b2f92 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml @@ -30,7 +30,8 @@ namespace Elasticsearch.Net var mm = kv.Key; var fieldType = kv.Value.CsharpType(kv.Key).Replace("params", ""); var setter = mm; - if (mm.Contains("fields") && fieldType.Contains("string")) + var isFields = (mm.Contains("fields") || mm.Contains("source_include") || mm.Contains("source_exclude")); + if (isFields && fieldType.Contains("string")) { fieldType = "IEnumerable"; setter = mm + ".Select(f=>(object)f)"; diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml index 3d7546e5a47..b1d98b78937 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml @@ -2,6 +2,7 @@ @using System.Linq @using CodeGeneration.LowLevelClient.Domain @using CodeGeneration.LowLevelClient +@using CsQuery.Engine.PseudoClassSelectors using System; using System.Collections.Generic; @@ -21,7 +22,7 @@ namespace Nest { @foreach (CsharpMethod method in Model.CsharpMethodsWithQueryStringInfo) { - if (!method.Url.Params.Any(p => p.Key.Contains("field"))) + if (!method.Url.Params.Any(p => p.Key.Contains("field") || p.Key.Contains("source_"))) { continue; } @@ -30,7 +31,8 @@ namespace Nest var mm = kv.Key; var fieldType = kv.Value.CsharpType(kv.Key).Replace("params", ""); var setter = mm; - if (mm.Contains("fields") && fieldType.Contains("string")) + var isFields = (mm.Contains("fields") || mm.Contains("source_include") || mm.Contains("source_exclude")); + if (isFields && fieldType.Contains("string")) { fieldType = "IEnumerable"; setter = mm + ".Select(f=>(PropertyPathMarker)f)"; @@ -39,7 +41,7 @@ namespace Nest { fieldType = "PropertyPathMarker"; } - if (mm.Contains("fields") && fieldType.Contains("PropertyPath")) + if (isFields && fieldType.Contains("PropertyPath")) { ///@kv.Value.Description diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml index 6ae69883e9c..196d1c183ff 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml @@ -30,13 +30,13 @@ namespace Nest continue; } var generate = new [] { - new { Name = endpoint.CsharpMethodName + "Dispatch", Returns = "ElasticsearchResponse" , Async = false}, - new { Name = endpoint.CsharpMethodName + "DispatchAsync", Returns = "Task", Async = true }, + new { Name = endpoint.CsharpMethodName + "Dispatch", Returns = "ElasticsearchResponse" , Async = false}, + new { Name = endpoint.CsharpMethodName + "DispatchAsync", Returns = "Task>", Async = true }, }; foreach(var gen in generate) { - internal @Raw(gen.Returns) @(gen.Name)(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body}) + internal @Raw(gen.Returns) @(Raw(gen.Name))(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body}, object deserializationState = null) { switch(pathInfo.HttpMethod) { @@ -51,22 +51,22 @@ namespace Nest @foreach (var dispatch in dispatches) { var method = dispatch.CsharpMethod; - var name = method.FullName + ((gen.Async) ? "Async" : ""); + var name = method.FullName + ((gen.Async) ? "Async" : ""); //@method.HttpMethod @method.Path if (i == 0 && !dispatch.IfChecks.Any()) { - return this.Raw.@(name)(@Raw(string.Join(",", dispatch.MethodArguments))); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); } else { if (dispatch.IfChecks.Any()) { if (@Raw(string.Join(" && ", dispatch.IfChecks))) - return this.Raw.@(name)(@Raw(string.Join(",", dispatch.MethodArguments))); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); } else { - return this.Raw.@(name)(@Raw(string.Join(",", dispatch.MethodArguments))); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); } } if (i == totalDispatches - 1 && allWithIfChecks) diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/_Descriptors.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/_Descriptors.Generated.cshtml index c55aea57acc..39fc07519ea 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/_Descriptors.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/_Descriptors.Generated.cshtml @@ -36,6 +36,8 @@ namespace Nest var m = kv.Key.ToPascalCase(); var mm = (m != "Type" && m != "Index" && m != "Script") ? m : m + "QueryString"; var typed = !method.DescriptorTypeGeneric.IsNullOrEmpty(); + var mml = mm.ToLowerInvariant(); + var fieldMethod = (mml.Contains("fields") || mml.Contains("sourceinclude") || mml.Contains("sourceexclude") ) && t.Contains("string"); ///@kv.Value.Description public @Raw(type) @(mm)(@t @kv.Key@tSuffix) @@ -44,8 +46,8 @@ namespace Nest return this; } - if (mm.ToLowerInvariant().Contains("fields") && t.Contains("string")) - { + if (fieldMethod) + { ///@kv.Value.Description public @Raw(type) @mm@(Raw(typed ? "" : ""))(params @Raw("Expression>[]") typedPathLookups) @Raw(typed ? "" : "where T : class") diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/packages.config b/src/CodeGeneration/CodeGeneration.LowLevelClient/packages.config index 3a4452f2372..017131b97ae 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/packages.config +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/packages.config @@ -1,7 +1,7 @@  - + \ No newline at end of file diff --git a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj index 129eed9515d..8d7ca1eaf63 100644 --- a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj +++ b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj @@ -46,7 +46,7 @@ ..\..\..\dep\Moq.4.2.1312.1622\lib\net40\Moq.dll - ..\..\..\dep\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll ..\..\..\dep\ShellProgressBar.1.0.0.0\lib\NET4\ShellProgressBar.dll diff --git a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/packages.config b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/packages.config index 121db2d7203..e95e90651f7 100644 --- a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/packages.config +++ b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/packages.config @@ -4,7 +4,7 @@ - + diff --git a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs index aa5c0953bc2..fe7fbb5bd7b 100644 --- a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs +++ b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; +using System.IO; using System.Linq; using System.Net.Http; using System.Text; @@ -17,11 +18,10 @@ public ElasticsearchHttpClient(IConnectionConfigurationValues settings) _settings = settings; } - public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null) + public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null) { var client = new System.Net.Http.HttpClient(); HttpResponseMessage response = null; - byte[] result = null; HttpContent content = null; if (data != null) content = new ByteArrayContent(data); @@ -29,92 +29,90 @@ public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = { case "head": response = client.SendAsync(new HttpRequestMessage(HttpMethod.Head, uri) ).Result; - result = response.Content.ReadAsByteArrayAsync().Result; break; case "delete": response = client.SendAsync(new HttpRequestMessage(HttpMethod.Delete, uri) { Content = content }).Result; - result = response.Content.ReadAsByteArrayAsync().Result; break; case "put": response = client.PutAsync(uri, content).Result; - result = response.Content.ReadAsByteArrayAsync().Result; break; case "post": response = client.PostAsync(uri, content).Result; - result = response.Content.ReadAsByteArrayAsync().Result; break; case "get": response = client.GetAsync(uri).Result; - result = response.Content.ReadAsByteArrayAsync().Result; break; } - return ElasticsearchResponse.Create(this._settings, (int)response.StatusCode, method, uri.ToString(), data, result); + if (response == null) + return ElasticsearchResponse.CreateError(_settings, null, method, uri.ToString(), data); + using (var result = response.Content.ReadAsStreamAsync().Result) + return ElasticsearchResponse.Create(this._settings, (int)response.StatusCode, method, uri.ToString(), data, result); } - public Task Get(Uri uri) + public Task> Get(Uri uri, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse GetSync(Uri uri) + public ElasticsearchResponse GetSync(Uri uri, object deserializeState = null) { - return this.DoSyncRequest("get", uri); + return this.DoSyncRequest("get", uri); } - public Task Head(Uri uri) + public Task> Head(Uri uri, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse HeadSync(Uri uri) + public ElasticsearchResponse HeadSync(Uri uri, object deserializeState = null) { - return this.DoSyncRequest("head", uri); + return this.DoSyncRequest("head", uri); throw new NotImplementedException(); } - public Task Post(Uri uri, byte[] data) + public Task> Post(Uri uri, byte[] data, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse PostSync(Uri uri, byte[] data) + public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializeState = null) { - return this.DoSyncRequest("post", uri, data); + return this.DoSyncRequest("post", uri, data); throw new NotImplementedException(); } - public Task Put(Uri uri, byte[] data) + public Task> Put(Uri uri, byte[] data, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse PutSync(Uri uri, byte[] data) + public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializeState = null) { - return this.DoSyncRequest("put", uri, data); + return this.DoSyncRequest("put", uri, data); throw new NotImplementedException(); } - public Task Delete(Uri uri) + public Task> Delete(Uri uri, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse DeleteSync(Uri uri) + public ElasticsearchResponse DeleteSync(Uri uri, object deserializeState = null) { - return this.DoSyncRequest("delete", uri); + return this.DoSyncRequest("delete", uri); throw new NotImplementedException(); } - public Task Delete(Uri uri, byte[] data) + public Task> Delete(Uri uri, byte[] data, object deserializeState = null) { throw new NotImplementedException(); } - public ElasticsearchResponse DeleteSync(Uri uri, byte[] data) + public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializeState = null) { - return this.DoSyncRequest("delete", uri, data); + return this.DoSyncRequest("delete", uri, data); throw new NotImplementedException(); } diff --git a/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj b/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj index 7de6d0462b1..0deb7ec5503 100644 --- a/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj +++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/Elasticsearch.Net.Connection.Thrift.csproj @@ -68,6 +68,9 @@ False ..\..\..\dep\NetReflector.1.1.2009\lib\net20\NetReflector.dll + + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll + diff --git a/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs b/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs index 22b30f0e088..6b1ea02dd8a 100644 --- a/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs +++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Concurrent; using System.Collections.Generic; +using System.Configuration; using System.IO; using System.Security.Cryptography.X509Certificates; using System.Text; @@ -44,7 +45,7 @@ public ThriftConnection(IConnectionConfigurationValues connectionSettings) #region IConnection Members - public Task Get(Uri uri) + public Task> Get(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.GET; @@ -52,13 +53,13 @@ public Task Get(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public Task Head(Uri uri) + public Task> Head(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.HEAD; @@ -66,13 +67,13 @@ public Task Head(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(()=> + return Task.Factory.StartNew>(()=> { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse GetSync(Uri uri) + public ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.GET; @@ -80,10 +81,10 @@ public ElasticsearchResponse GetSync(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse HeadSync(Uri uri) + public ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.HEAD; @@ -91,10 +92,10 @@ public ElasticsearchResponse HeadSync(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } - public Task Post(Uri uri, byte[] data) + public Task> Post(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.POST; @@ -103,12 +104,12 @@ public Task Post(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public Task Put(Uri uri, byte[] data) + public Task> Put(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.PUT; @@ -117,12 +118,12 @@ public Task Put(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public Task Delete(Uri uri, byte[] data) + public Task> Delete(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -131,13 +132,13 @@ public Task Delete(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse PostSync(Uri uri, byte[] data) + public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.POST; @@ -146,9 +147,9 @@ public ElasticsearchResponse PostSync(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse PutSync(Uri uri, byte[] data) + public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.PUT; @@ -157,9 +158,9 @@ public ElasticsearchResponse PutSync(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } - public Task Delete(Uri uri) + public Task> Delete(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -167,13 +168,13 @@ public Task Delete(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse DeleteSync(Uri uri) + public ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -181,9 +182,9 @@ public ElasticsearchResponse DeleteSync(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse DeleteSync(Uri uri, byte[] data) + public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -192,7 +193,7 @@ public ElasticsearchResponse DeleteSync(Uri uri, byte[] data) restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest); + return this.Execute(restRequest, deserializationState); } public bool Ping(Uri uri) @@ -203,7 +204,7 @@ public bool Ping(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - var r = this.Execute(restRequest); + var r = this.Execute(restRequest, null); //TODO VoidResponse return r.Success; } @@ -215,10 +216,10 @@ public IList Sniff(Uri uri) restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - var r = this.Execute(restRequest); - using (var memoryStream = new MemoryStream(r.ResultBytes)) + var r = this.Execute(restRequest, null); + using (var memoryStream = new MemoryStream(r.Response)) { - return Sniffer.FromStream(memoryStream, this._connectionSettings.Serializer); + return Sniffer.FromStream(r, memoryStream, this._connectionSettings.Serializer); } } @@ -269,7 +270,7 @@ protected virtual void Dispose(bool disposing) - private ElasticsearchResponse Execute(RestRequest restRequest) + private ElasticsearchResponse Execute(RestRequest restRequest, object deserializationState) { //RestResponse result = GetClient().execute(restRequest); // @@ -279,7 +280,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest) if (!this._resourceLock.WaitOne(this._timeout)) { var m = "Could not start the thrift operation before the timeout of " + this._timeout + "ms completed while waiting for the semaphore"; - return ElasticsearchResponse.CreateError(this._connectionSettings, new TimeoutException(m), method, path, requestData); + return ElasticsearchResponse.CreateError(this._connectionSettings, new TimeoutException(m), method, path, requestData); } try { @@ -287,7 +288,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest) if (!this._clients.TryDequeue(out client)) { var m = string.Format("Could dequeue a thrift client from internal socket pool of size {0}", this._poolSize); - var status = ElasticsearchResponse.CreateError(this._connectionSettings, new Exception(m), method, path, requestData); + var status = ElasticsearchResponse.CreateError(this._connectionSettings, new Exception(m), method, path, requestData); return status; } try @@ -297,11 +298,29 @@ private ElasticsearchResponse Execute(RestRequest restRequest) var result = client.execute(restRequest); if (result.Status == Status.OK || result.Status == Status.CREATED || result.Status == Status.ACCEPTED) - return ElasticsearchResponse.Create(this._connectionSettings, (int)result.Status, method, path, requestData, result.Body); + { + var response = ElasticsearchResponse.Create(this._connectionSettings, (int)result.Status, method, path, requestData); + if (typeof(T) == typeof(VoidResponse)) + return response; + using (var ms = new MemoryStream(result.Body)) + { + if (this._connectionSettings.KeepRawResponse) + { + response.ResponseRaw = result.Body; + } + if (typeof(T) == typeof(string)) + this.SetStringResult(response as ElasticsearchResponse, result.Body); + else if (typeof(T) == typeof(byte[])) + this.SetByteResult(response as ElasticsearchResponse, result.Body); + else + response.Response = this._connectionSettings.Serializer.Deserialize(response, ms, deserializationState); + return response; + }; + } else { var connectionException = new ConnectionException((int)result.Status); - return ElasticsearchResponse.CreateError(this._connectionSettings, connectionException, method, path, requestData); + return ElasticsearchResponse.CreateError(this._connectionSettings, connectionException, method, path, requestData); } } catch @@ -317,7 +336,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest) } catch (Exception e) { - return ElasticsearchResponse.CreateError(this._connectionSettings, e, method, path, requestData); + return ElasticsearchResponse.CreateError(this._connectionSettings, e, method, path, requestData); } finally { @@ -325,6 +344,16 @@ private ElasticsearchResponse Execute(RestRequest restRequest) } } + private void SetByteResult(ElasticsearchResponse elasticsearchResponse, byte[] body) + { + elasticsearchResponse.Response = body; + } + + private void SetStringResult(ElasticsearchResponse elasticsearchResponse, byte[] body) + { + elasticsearchResponse.Response = body.Utf8String(); + } + public string DecodeStr(byte[] bytes) { if (bytes != null && bytes.Length > 0) diff --git a/src/Connections/Elasticsearch.Net.Connection.Thrift/packages.config b/src/Connections/Elasticsearch.Net.Connection.Thrift/packages.config index df5ff3d53b8..870fc73729e 100644 --- a/src/Connections/Elasticsearch.Net.Connection.Thrift/packages.config +++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/src/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs b/src/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs deleted file mode 100644 index 23b061287b7..00000000000 --- a/src/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs +++ /dev/null @@ -1,198 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Net; -using System.Runtime.InteropServices; -using System.Text; -using System.Threading; -using System.Threading.Tasks; -using Autofac; -using Autofac.Core.Activators.Reflection; -using Autofac.Extras.FakeItEasy; -using Elasticsearch.Net.Connection; -using Elasticsearch.Net.ConnectionPool; -using Elasticsearch.Net.Exceptions; -using Elasticsearch.Net.Providers; -using Elasticsearch.Net.Tests.Unit.Stubs; -using FakeItEasy; -using FluentAssertions; -using NUnit.Framework; - -namespace Elasticsearch.Net.Tests.Unit.Connection -{ - [TestFixture] - public class SkipDeadNodesTests - { - [Test] - public void DeadNodesAreNotVisited() - { - using (var fake = new AutoFake()) - { - var now = DateTime.UtcNow; - var dateTimeProvider = fake.Resolve(); - var nowCall = A.CallTo(()=>dateTimeProvider.Now()); - nowCall.ReturnsNextFromSequence( - DateTime.UtcNow, //info 1 - DateTime.UtcNow, //info 2 - DateTime.UtcNow, //info 2 retry - DateTime.UtcNow, //info 3 - DateTime.UtcNow, //info 4 - DateTime.UtcNow, //info 5 pass over node 3 - DateTime.UtcNow, //info 5 - DateTime.UtcNow, //info 6 - DateTime.UtcNow.AddMinutes(2), //info 7 - DateTime.UtcNow.AddMinutes(2), //info 8 - DateTime.UtcNow.AddMinutes(2) //info 9 - ); - A.CallTo(()=>dateTimeProvider.AliveTime(A._, A._)) - .Returns(new DateTime()); - A.CallTo(() => dateTimeProvider.DeadTime(A._, A._, A._, A._)) - .Returns(DateTime.UtcNow.AddMinutes(1)); - //make sure the transport layer uses a different datetimeprovider - fake.Provide(new DateTimeProvider()); - var connectionPool = new StaticConnectionPool(new[] - { - new Uri("http://localhost:9204"), - new Uri("http://localhost:9203"), - new Uri("http://localhost:9202"), - new Uri("http://localhost:9201") - }, randomizeOnStartup: false, dateTimeProvider: dateTimeProvider); - var config = new ConnectionConfiguration(connectionPool); - fake.Provide(config); - fake.Provide(fake.Resolve()); - var connection = fake.Resolve(); - - var seenNodes = new List(); - var getCall = A.CallTo(() => connection.GetSync(A._)); - getCall.ReturnsNextFromSequence( - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 1 - 9204 - ElasticsearchResponse.Create(config, 503, "GET", "/", null, null), //info 2 - 9203 DEAD - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 2 retry - 9202 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 3 - 9201 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 4 - 9204 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 5 - 9202 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 6 - 9201 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 7 - 9204 - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null), //info 8 - 9203 (Now > Timeout) - ElasticsearchResponse.Create(config, 200, "GET", "/", null, null) //info 9 - 9202 - ); - getCall.Invokes((Uri u) => seenNodes.Add(u)); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); - - var client1 = fake.Resolve(); - client1.Info(); //info call 1 - client1.Info(); //info call 2 - client1.Info(); //info call 3 - client1.Info(); //info call 4 - client1.Info(); //info call 5 - client1.Info(); //info call 6 - client1.Info(); //info call 7 - client1.Info(); //info call 8 - client1.Info(); //info call 9 - - seenNodes.Should().NotBeEmpty().And.HaveCount(10); - seenNodes[0].Port.Should().Be(9204); - seenNodes[1].Port.Should().Be(9203); - //after sniff - seenNodes[2].Port.Should().Be(9202); - seenNodes[3].Port.Should().Be(9201); - seenNodes[4].Port.Should().Be(9204); - seenNodes[5].Port.Should().Be(9202); - seenNodes[6].Port.Should().Be(9201); - seenNodes[7].Port.Should().Be(9204); - seenNodes[8].Port.Should().Be(9203); - - //4 nodes first time usage + 1 time after the first time 9203 came back to live - pingCall.MustHaveHappened(Repeated.Exactly.Times(5)); - - //var nowCall = A.CallTo(() => fake.Resolve().Sniff(A._, A._)); - } - } - - [Test] - public async void DeadNodesAreNotVisited_Async() - { - using (var fake = new AutoFake()) - { - var now = DateTime.UtcNow; - var dateTimeProvider = fake.Resolve(); - var nowCall = A.CallTo(()=>dateTimeProvider.Now()); - nowCall.ReturnsNextFromSequence( - DateTime.UtcNow, //info 1 - DateTime.UtcNow, //info 2 - DateTime.UtcNow, //info 2 retry - DateTime.UtcNow, //info 3 - DateTime.UtcNow, //info 4 - DateTime.UtcNow, //info 5 pass over node 3 - DateTime.UtcNow, //info 5 - DateTime.UtcNow, //info 6 - DateTime.UtcNow.AddMinutes(2), //info 7 - DateTime.UtcNow.AddMinutes(2), //info 8 - DateTime.UtcNow.AddMinutes(2) //info 9 - ); - A.CallTo(()=>dateTimeProvider.AliveTime(A._, A._)) - .Returns(new DateTime()); - A.CallTo(() => dateTimeProvider.DeadTime(A._, A._, A._, A._)) - .Returns(DateTime.UtcNow.AddMinutes(1)); - //make sure the transport layer uses a different datetimeprovider - fake.Provide(new DateTimeProvider()); - var connectionPool = new StaticConnectionPool(new[] - { - new Uri("http://localhost:9204"), - new Uri("http://localhost:9203"), - new Uri("http://localhost:9202"), - new Uri("http://localhost:9201") - }, randomizeOnStartup: false, dateTimeProvider: dateTimeProvider); - var config = new ConnectionConfiguration(connectionPool); - fake.Provide(config); - fake.Provide(fake.Resolve()); - var connection = fake.Resolve(); - - var ok = Task.FromResult(ElasticsearchResponse.Create(config, 200, "GET", "/", null, null)); - var bad = Task.FromResult(ElasticsearchResponse.Create(config, 503, "GET", "/", null, null)); - - var seenNodes = new List(); - var getCall = A.CallTo(() => connection.Get(A._)); - getCall.ReturnsNextFromSequence( - ok, //info 1 - 9204 - bad, //info 2 - 9203 DEAD - ok, //info 2 retry - 9202 - ok, //info 3 - 9201 - ok, //info 4 - 9204 - ok, //info 5 - 9202 - ok, //info 6 - 9201 - ok, //info 7 - 9204 - ok, //info 8 - 9203 (Now > Timeout) - ok //info 9 - 9202 - ); - getCall.Invokes((Uri u) => seenNodes.Add(u)); - - var client1 = fake.Resolve(); - await client1.InfoAsync(); //info call 1 - await client1.InfoAsync(); //info call 2 - await client1.InfoAsync(); //info call 3 - await client1.InfoAsync(); //info call 4 - await client1.InfoAsync(); //info call 5 - await client1.InfoAsync(); //info call 6 - await client1.InfoAsync(); //info call 7 - await client1.InfoAsync(); //info call 8 - await client1.InfoAsync(); //info call 9 - - seenNodes.Should().NotBeEmpty().And.HaveCount(10); - seenNodes[0].Port.Should().Be(9204); - seenNodes[1].Port.Should().Be(9203); - //after sniff - seenNodes[2].Port.Should().Be(9202); - seenNodes[3].Port.Should().Be(9201); - seenNodes[4].Port.Should().Be(9204); - seenNodes[5].Port.Should().Be(9202); - seenNodes[6].Port.Should().Be(9201); - seenNodes[7].Port.Should().Be(9204); - seenNodes[8].Port.Should().Be(9203); - - //var nowCall = A.CallTo(() => fake.Resolve().Sniff(A._, A._)); - } - } - } -} diff --git a/src/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs b/src/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs deleted file mode 100644 index 1acfa0ee85e..00000000000 --- a/src/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs +++ /dev/null @@ -1,137 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using Elasticsearch.Net.Connection; - -namespace Elasticsearch.Net.Tests.Unit.Stubs -{ - public interface IUriObserver - { - void Observe(Uri uri); - } - - public class UriObserver : IUriObserver - { - public virtual void Observe(Uri uri) { } - } - - public interface IResponseGenerator - { - ElasticsearchResponse Create(); - } - - public class ResponseGenerator : IResponseGenerator - { - public virtual ElasticsearchResponse Create() - { - return null; - } - } - - public class NoopConnection : IConnection - { - private readonly IConnectionConfigurationValues _configValues; - private readonly IUriObserver _uriObserver; - private readonly IResponseGenerator _responseGenerator; - - public NoopConnection( - IConnectionConfigurationValues configValues - , IUriObserver uriObserver - , IResponseGenerator responseGenerator) - { - _uriObserver = uriObserver; - _responseGenerator = responseGenerator; - _configValues = configValues; - } - - - public virtual Task Get(Uri uri) - { - return DoAsyncRequest(uri); - } - - public virtual ElasticsearchResponse GetSync(Uri uri) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public virtual Task Head(Uri uri) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - - public virtual ElasticsearchResponse HeadSync(Uri uri) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public virtual Task Post(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - - public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public virtual Task Put(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - - public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public virtual Task Delete(Uri uri) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - - public virtual ElasticsearchResponse DeleteSync(Uri uri) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public virtual Task Delete(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - - public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data) - { - _uriObserver.Observe(uri); - return _responseGenerator.Create(); - } - - public bool Ping(Uri uri) - { - return true; - } - - public IList Sniff(Uri uri) - { - throw new NotImplementedException(); - } - - private Task DoAsyncRequest(Uri uri) - { - _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); - } - } -} diff --git a/src/Elasticsearch.Net/Connection/ConnectionConfiguration.cs b/src/Elasticsearch.Net/Connection/ConnectionConfiguration.cs index d39422b7c05..808f21c5544 100644 --- a/src/Elasticsearch.Net/Connection/ConnectionConfiguration.cs +++ b/src/Elasticsearch.Net/Connection/ConnectionConfiguration.cs @@ -48,12 +48,15 @@ public class ConnectionConfiguration : IConnectionConfigurationValues private string _proxyAddress; string IConnectionConfigurationValues.ProxyAddress { get{ return _proxyAddress; } } + private bool _usePrettyResponses; + bool IConnectionConfigurationValues.UsesPrettyResponses { get{ return _usePrettyResponses; } } + private bool _keepRawResponse; + bool IConnectionConfigurationValues.KeepRawResponse { get{ return _keepRawResponse; } } + private int _maximumAsyncConnections; int IConnectionConfigurationValues.MaximumAsyncConnections { get{ return _maximumAsyncConnections; } } private int? _maxRetries; int? IConnectionConfigurationValues.MaxRetries { get{ return _maxRetries; } } - private bool _usePrettyResponses; - bool IConnectionConfigurationValues.UsesPrettyResponses { get{ return _usePrettyResponses; } } private bool _sniffOnStartup; bool IConnectionConfigurationValues.SniffsOnStartup { get{ return _sniffOnStartup; } } private bool _sniffOnConectionFault; @@ -62,8 +65,8 @@ public class ConnectionConfiguration : IConnectionConfigurationValues TimeSpan? IConnectionConfigurationValues.SniffInformationLifeSpan { get{ return _sniffLifeSpan; } } private bool _traceEnabled; bool IConnectionConfigurationValues.TraceEnabled { get{ return _traceEnabled; } } - private Action _connectionStatusHandler; - Action IConnectionConfigurationValues.ConnectionStatusHandler { get{ return _connectionStatusHandler; } } + private Action _connectionStatusHandler; + Action IConnectionConfigurationValues.ConnectionStatusHandler { get{ return _connectionStatusHandler; } } private NameValueCollection _queryString; NameValueCollection IConnectionConfigurationValues.QueryStringParameters { get{ return _queryString; } } @@ -216,7 +219,16 @@ public T UsePrettyResponses(bool b = true) return (T) this; } - protected void ConnectionStatusDefaultHandler(ElasticsearchResponse status) + /// + /// Make sure the reponse bytes are always available on the ElasticsearchResponse object + /// Note: that depending on the registered serializer this may cause the respond to be read in memory first + /// + public T ExposeRawResponse(bool b = true) + { + this._keepRawResponse = b; + return (T) this; + } + protected void ConnectionStatusDefaultHandler(IElasticsearchResponse status) { return; } @@ -224,7 +236,7 @@ protected void ConnectionStatusDefaultHandler(ElasticsearchResponse status) /// /// Global callback for every response that NEST receives, useful for custom logging. /// - public T SetConnectionStatusHandler(Action handler) + public T SetConnectionStatusHandler(Action handler) { handler.ThrowIfNull("handler"); this._connectionStatusHandler = handler; diff --git a/src/Elasticsearch.Net/Connection/ElasticsearchResponseTracer.cs b/src/Elasticsearch.Net/Connection/ElasticsearchResponseTracer.cs index 89af35c4d1b..c07196720cd 100644 --- a/src/Elasticsearch.Net/Connection/ElasticsearchResponseTracer.cs +++ b/src/Elasticsearch.Net/Connection/ElasticsearchResponseTracer.cs @@ -6,12 +6,12 @@ namespace Elasticsearch.Net.Connection { - public class ElasticsearchResponseTracer : IDisposable + public class ElasticsearchResponseTracer : IDisposable { private readonly bool _enabled; private Stopwatch _stopwatch; - public ElasticsearchResponse _result { get; set; } + public ElasticsearchResponse _result { get; set; } public ElasticsearchResponseTracer(bool enabled) { @@ -22,7 +22,7 @@ public ElasticsearchResponseTracer(bool enabled) } } - public void SetResult(ElasticsearchResponse status) + public void SetResult(ElasticsearchResponse status) { if (!_enabled) return; diff --git a/src/Elasticsearch.Net/Connection/HttpConnection.cs b/src/Elasticsearch.Net/Connection/HttpConnection.cs index d1cd0b9bc68..879232e7d1b 100644 --- a/src/Elasticsearch.Net/Connection/HttpConnection.cs +++ b/src/Elasticsearch.Net/Connection/HttpConnection.cs @@ -3,6 +3,8 @@ using System.IO; using System.Linq; using System.Net; +using System.Runtime.InteropServices; +using System.Security.Cryptography; using System.Text; using System.Threading; using System.Threading.Tasks; @@ -25,6 +27,7 @@ static HttpConnection() ServicePointManager.Expect100Continue = false; ServicePointManager.DefaultConnectionLimit = 10000; } + public HttpConnection(IConnectionConfigurationValues settings) { if (settings == null) @@ -39,34 +42,33 @@ public HttpConnection(IConnectionConfigurationValues settings) this._enableTrace = settings.TraceEnabled; } - public virtual ElasticsearchResponse GetSync(Uri uri) + public virtual ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) { - return this.HeaderOnlyRequest(uri, "GET"); + return this.HeaderOnlyRequest(uri, "GET", deserializationState); } - public virtual ElasticsearchResponse HeadSync(Uri uri) + public virtual ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null) { - return this.HeaderOnlyRequest(uri, "HEAD"); + return this.HeaderOnlyRequest(uri, "HEAD", deserializationState); } - public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data) + public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null) { - return this.BodyRequest(uri, data, "POST"); + return this.BodyRequest(uri, data, "POST", deserializationState); } - public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data) + public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null) { - return this.BodyRequest(uri, data, "PUT"); + return this.BodyRequest(uri, data, "PUT", deserializationState); } - public virtual ElasticsearchResponse DeleteSync(Uri uri) + public virtual ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null) { - var connection = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoSynchronousRequest(connection); + return this.HeaderOnlyRequest(uri, "DELETE", deserializationState); } - public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data) + public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null) { - var connection = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoSynchronousRequest(connection, data); + return this.BodyRequest(uri, data, "DELETE", deserializationState); } + public virtual bool Ping(Uri uri) { var request = this.CreateHttpWebRequest(uri, "HEAD"); @@ -89,41 +91,42 @@ public virtual IList Sniff(Uri uri) { if (response.StatusCode != HttpStatusCode.OK) return new List(); - return Sniffer.FromStream(responseStream, this._ConnectionSettings.Serializer); + var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int)response.StatusCode, "GET", uri.AbsolutePath, null); + return Sniffer.FromStream(cs, responseStream, this._ConnectionSettings.Serializer); } } - public virtual Task Get(Uri uri) + public virtual Task> Get(Uri uri, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "GET"); - return this.DoAsyncRequest(r); + return this.DoAsyncRequest(r, deserializationState: deserializationState); } - public virtual Task Head(Uri uri) + public virtual Task> Head(Uri uri, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "HEAD"); - return this.DoAsyncRequest(r); + return this.DoAsyncRequest(r, deserializationState: deserializationState); } - public virtual Task Post(Uri uri, byte[] data) + public virtual Task> Post(Uri uri, byte[] data, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "POST"); - return this.DoAsyncRequest(r, data); + return this.DoAsyncRequest(r, data, deserializationState: deserializationState); } - public virtual Task Put(Uri uri, byte[] data) + public virtual Task> Put(Uri uri, byte[] data, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "PUT"); - return this.DoAsyncRequest(r, data); + return this.DoAsyncRequest(r, data, deserializationState: deserializationState); } - public virtual Task Delete(Uri uri, byte[] data) + public virtual Task> Delete(Uri uri, byte[] data, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoAsyncRequest(r, data); + return this.DoAsyncRequest(r, data, deserializationState: deserializationState); } - public virtual Task Delete(Uri uri) + public virtual Task> Delete(Uri uri, object deserializationState = null) { var r = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoAsyncRequest(r); + return this.DoAsyncRequest(r, deserializationState: deserializationState); } private static void ThreadTimeoutCallback(object state, bool timedOut) @@ -138,16 +141,16 @@ private static void ThreadTimeoutCallback(object state, bool timedOut) } } - private ElasticsearchResponse HeaderOnlyRequest(Uri uri, string method) + private ElasticsearchResponse HeaderOnlyRequest(Uri uri, string method, object deserializationState) { var r = this.CreateHttpWebRequest(uri, method); - return this.DoSynchronousRequest(r); + return this.DoSynchronousRequest(r, deserializationState: deserializationState); } - private ElasticsearchResponse BodyRequest(Uri uri, byte[] data, string method) + private ElasticsearchResponse BodyRequest(Uri uri, byte[] data, string method, object deserializationState) { var r = this.CreateHttpWebRequest(uri, method); - return this.DoSynchronousRequest(r, data); + return this.DoSynchronousRequest(r, data, deserializationState); } protected virtual HttpWebRequest CreateHttpWebRequest(Uri uri, string method) @@ -202,13 +205,13 @@ protected virtual HttpWebRequest CreateWebRequest(Uri uri, string method) return myReq; } - protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null) + protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) { var path = request.RequestUri.ToString(); var method = request.Method; - using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) + using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) { - ElasticsearchResponse cs = null; + ElasticsearchResponse cs = null; if (data != null) { using (var r = request.GetRequestStream()) @@ -220,18 +223,19 @@ protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest requ { using (var response = (HttpWebResponse)request.GetResponse()) using (var responseStream = response.GetResponseStream()) - using (var memoryStream = new MemoryStream()) - { - responseStream.CopyTo(memoryStream); - cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data, - memoryStream.ToArray()); - tracer.SetResult(cs); - return cs; - } + return WebToElasticsearchResponse(data, deserializationState, responseStream, response, method, path, tracer); } catch (WebException webException) { - cs = ElasticsearchResponse.CreateError(this._ConnectionSettings, webException, method, path, data); + var httpEx = webException.Response as HttpWebResponse; + if (httpEx != null && httpEx.StatusCode == HttpStatusCode.NotFound) + { + cs = WebToElasticsearchResponse(data, deserializationState, httpEx.GetResponseStream(), httpEx, method, path, tracer); + cs.Error = new ConnectionError(webException); + return cs; + + } + cs = ElasticsearchResponse.CreateError(this._ConnectionSettings, webException, method, path, data); tracer.SetResult(cs); _ConnectionSettings.ConnectionStatusHandler(cs); return cs; @@ -240,23 +244,63 @@ protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest requ } - protected virtual Task DoAsyncRequest(HttpWebRequest request, byte[] data = null) + private ElasticsearchResponse WebToElasticsearchResponse(byte[] data, object deserializationState, + Stream responseStream, HttpWebResponse response, string method, string path, ElasticsearchResponseTracer tracer) + { + ElasticsearchResponse cs = + ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data); + if (typeof(T) == typeof(VoidResponse)) + return cs; + using (var memoryStream = new MemoryStream()) + { + Stream s = responseStream; + Type type = typeof(T); + if (_ConnectionSettings.KeepRawResponse || type == typeof(string) || type == typeof(byte[])) + { + responseStream.CopyTo(memoryStream); + //use memory stream for serialization instead + //our own serializers have special handling for memorystream + //that will prevent double reads + memoryStream.Position = 0; + s = memoryStream; + var bytes = memoryStream.ToArray(); + if (typeof(T) == typeof(string)) + { + this.SetStringResult(cs as ElasticsearchResponse, bytes); + return cs; + } + if (typeof(T) == typeof(byte[])) + { + this.SetByteResult(cs as ElasticsearchResponse, bytes); + return cs; + } + cs.ResponseRaw = _ConnectionSettings.KeepRawResponse ? bytes: null; + } + + var result = this._ConnectionSettings.Serializer.Deserialize(cs, s, deserializationState); + cs.Response = result; + tracer.SetResult(cs); + return cs; + } + } + + protected virtual Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) { - var tcs = new TaskCompletionSource(); + var tcs = new TaskCompletionSource>(); if (this._ConnectionSettings.MaximumAsyncConnections <= 0 || this._ResourceLock == null) - return this.CreateIterateTask(request, data, tcs); + return this.CreateIterateTask(request, data, deserializationState, tcs); var timeout = this._ConnectionSettings.Timeout; var path = request.RequestUri.ToString(); var method = request.Method; if (!this._ResourceLock.WaitOne(timeout)) { - using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) + using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) { var m = "Could not start the operation before the timeout of " + timeout + "ms completed while waiting for the semaphore"; - var cs = ElasticsearchResponse.CreateError(this._ConnectionSettings, new TimeoutException(m), method, path, data); + var cs = ElasticsearchResponse.CreateError(this._ConnectionSettings, new TimeoutException(m), method, path, data); tcs.SetResult(cs); tracer.SetResult(cs); _ConnectionSettings.ConnectionStatusHandler(cs); @@ -265,7 +309,7 @@ protected virtual Task DoAsyncRequest(HttpWebRequest requ } try { - return this.CreateIterateTask(request, data, tcs); + return this.CreateIterateTask(request, data, deserializationState, tcs); } finally { @@ -273,15 +317,15 @@ protected virtual Task DoAsyncRequest(HttpWebRequest requ } } - private Task CreateIterateTask(HttpWebRequest request, byte[] data, TaskCompletionSource tcs) + private Task> CreateIterateTask(HttpWebRequest request, byte[] data, object deserializationState, TaskCompletionSource> tcs) { - this.Iterate(request, data, this._AsyncSteps(request, tcs, data), tcs); + this.Iterate(request, data, this._AsyncSteps(request, tcs, data, deserializationState), tcs); return tcs.Task; } - private IEnumerable _AsyncSteps(HttpWebRequest request, TaskCompletionSource tcs, byte[] data = null) + private IEnumerable _AsyncSteps(HttpWebRequest request, TaskCompletionSource> tcs, byte[] data, object deserializationState) { - using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) + using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) { var timeout = this._ConnectionSettings.Timeout; @@ -318,24 +362,70 @@ private IEnumerable _AsyncSteps(HttpWebRequest request, TaskCompletionSour using (var responseStream = response.GetResponseStream()) using (var memoryStream = new MemoryStream()) { - // Copy all data from the response stream - var buffer = new byte[BUFFER_SIZE]; - while (responseStream != null) + Stream s = responseStream; + var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data); + if (typeof(T) == typeof(VoidResponse)) { - var read = Task.Factory.FromAsync(responseStream.BeginRead, responseStream.EndRead, buffer, 0, BUFFER_SIZE, null); - yield return read; - if (read.Result == 0) break; - memoryStream.Write(buffer, 0, read.Result); + SetReturnOnAsycActors(tcs, cs, tracer); + yield break; } - var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data, memoryStream.ToArray()); - tcs.TrySetResult(cs); - tracer.SetResult(cs); - _ConnectionSettings.ConnectionStatusHandler(cs); + Type type = typeof(T); + if (_ConnectionSettings.KeepRawResponse || type == typeof(string) || type == typeof(byte[])) + { + // Copy all data from the response stream + var buffer = new byte[BUFFER_SIZE]; + while (responseStream != null) + { + var read = Task.Factory.FromAsync(responseStream.BeginRead, responseStream.EndRead, buffer, 0, BUFFER_SIZE, null); + yield return read; + if (read.Result == 0) break; + memoryStream.Write(buffer, 0, read.Result); + } + memoryStream.Position = 0; + s = memoryStream; + var bytes = memoryStream.ToArray(); + if (typeof(T) == typeof(string)) + { + this.SetStringResult(cs as ElasticsearchResponse, bytes); + SetReturnOnAsycActors(tcs, cs, tracer); + yield break; + } + if (typeof(T) == typeof(byte[])) + { + this.SetByteResult(cs as ElasticsearchResponse, bytes); + SetReturnOnAsycActors(tcs, cs, tracer); + yield break; + } + cs.ResponseRaw = _ConnectionSettings.KeepRawResponse ? bytes : null; + } + var t = this._ConnectionSettings.Serializer.DeserializeAsync(cs, s, deserializationState); + yield return t; + cs.Response = t.Result; + SetReturnOnAsycActors(tcs, cs, tracer); } } } - public void Iterate(HttpWebRequest request, byte[] data, IEnumerable asyncIterator, TaskCompletionSource tcs) + private void SetReturnOnAsycActors(TaskCompletionSource> tcs, ElasticsearchResponse cs, + ElasticsearchResponseTracer tracer) + { + tcs.TrySetResult(cs); + tracer.SetResult(cs); + _ConnectionSettings.ConnectionStatusHandler(cs); + } + + public void SetStringResult(ElasticsearchResponse response, byte[] rawResponse) + { + response.Response = rawResponse.Utf8String(); + } + + public void SetByteResult(ElasticsearchResponse response, byte[] rawResponse) + { + response.Response = rawResponse; + } + + + public void Iterate(HttpWebRequest request, byte[] data, IEnumerable asyncIterator, TaskCompletionSource> tcs) { var enumerator = asyncIterator.GetEnumerator(); Action recursiveBody = null; @@ -352,16 +442,15 @@ public void Iterate(HttpWebRequest request, byte[] data, IEnumerable async { var path = request.RequestUri.ToString(); var method = request.Method; - var response = ElasticsearchResponse.CreateError(this._ConnectionSettings, exception, method, path, data); + var response = ElasticsearchResponse.CreateError(this._ConnectionSettings, exception, method, path, data); tcs.SetResult(response); } else tcs.TrySetException(exception); - // enumerator.Dispose(); + enumerator.Dispose(); } else if (enumerator.MoveNext()) { - //enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.ExecuteSynchronously); enumerator.Current.ContinueWith(recursiveBody); } else enumerator.Dispose(); diff --git a/src/Elasticsearch.Net/Connection/IConnection.cs b/src/Elasticsearch.Net/Connection/IConnection.cs index 10f33112bba..ecf99a51e2d 100644 --- a/src/Elasticsearch.Net/Connection/IConnection.cs +++ b/src/Elasticsearch.Net/Connection/IConnection.cs @@ -8,23 +8,24 @@ namespace Elasticsearch.Net.Connection { public interface IConnection { - Task Get(Uri uri); - ElasticsearchResponse GetSync(Uri uri); - Task Head(Uri uri); - ElasticsearchResponse HeadSync(Uri uri); + Task> Get(Uri uri, object deserializationState = null); + ElasticsearchResponse GetSync(Uri uri, object deserializationState = null); - Task Post(Uri uri, byte[] data); - ElasticsearchResponse PostSync(Uri uri, byte[] data); + Task> Head(Uri uri, object deserializationState = null); + ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null); - Task Put(Uri uri, byte[] data); - ElasticsearchResponse PutSync(Uri uri, byte[] data); + Task> Post(Uri uri, byte[] data, object deserializationState = null); + ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null); - Task Delete(Uri uri); - ElasticsearchResponse DeleteSync(Uri uri); + Task> Put(Uri uri, byte[] data, object deserializationState = null); + ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null); - Task Delete(Uri uri, byte[] data); - ElasticsearchResponse DeleteSync(Uri uri, byte[] data); + Task> Delete(Uri uri, object deserializationState = null); + ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null); + + Task> Delete(Uri uri, byte[] data, object deserializationState = null); + ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null); bool Ping(Uri uri); IList Sniff(Uri uri); diff --git a/src/Elasticsearch.Net/Connection/IConnectionConfiguration.cs b/src/Elasticsearch.Net/Connection/IConnectionConfiguration.cs index f6ecf5f2f5d..5f363affd5b 100644 --- a/src/Elasticsearch.Net/Connection/IConnectionConfiguration.cs +++ b/src/Elasticsearch.Net/Connection/IConnectionConfiguration.cs @@ -43,6 +43,13 @@ public interface IConnectionConfiguration where T : IConnectionConfigurat /// T UsePrettyResponses(bool b = true); + /// + /// Make sure the reponse bytes are always available on the ElasticsearchResponse object + /// Note: that depending on the registered serializer this may cause the respond to be read in memory first + /// + /// + T ExposeRawResponse(bool b = true); + /// /// Semaphore asynchronous connections automatically by giving /// it a maximum concurrent connections. Great to prevent @@ -55,6 +62,6 @@ public interface IConnectionConfiguration where T : IConnectionConfigurat /// /// Global callback for every response that NEST receives, useful for custom logging. /// - T SetConnectionStatusHandler(Action handler); + T SetConnectionStatusHandler(Action handler); } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Connection/IConnectionConfigurationValues.cs b/src/Elasticsearch.Net/Connection/IConnectionConfigurationValues.cs index aae4446dc20..2a5a6ed8dc1 100644 --- a/src/Elasticsearch.Net/Connection/IConnectionConfigurationValues.cs +++ b/src/Elasticsearch.Net/Connection/IConnectionConfigurationValues.cs @@ -24,6 +24,7 @@ public interface IConnectionConfigurationValues bool TraceEnabled { get; } bool UsesPrettyResponses { get; } + bool KeepRawResponse { get; } /// /// Sniff the cluster state immediatly on startup @@ -50,7 +51,7 @@ public interface IConnectionConfigurationValues /// /// Connection status handler that will be called everytime the connection receives anything. /// - Action ConnectionStatusHandler { get; } + Action ConnectionStatusHandler { get; } /// /// diff --git a/src/Elasticsearch.Net/Connection/ITransport.cs b/src/Elasticsearch.Net/Connection/ITransport.cs index 2b66a0d79e7..073b4175c8a 100644 --- a/src/Elasticsearch.Net/Connection/ITransport.cs +++ b/src/Elasticsearch.Net/Connection/ITransport.cs @@ -9,12 +9,25 @@ public interface ITransport IConnectionConfigurationValues Settings { get; } IElasticsearchSerializer Serializer { get; } - ElasticsearchResponse DoRequest(string method, string path, object data = null, NameValueCollection queryString = null, int retried = 0, int? seed = null); + ElasticsearchResponse DoRequest( + string method, + string path, + object data = null, + NameValueCollection queryString = null, + object serializationState = null, + int retried = 0, + int? seed = null + ); + void Sniff(bool fromStartup = false); - Task DoRequestAsync( + Task> DoRequestAsync( string method, string path, - object data = null, NameValueCollection queryString = null, int retried = 0, int? seed = null); + object data = null, + NameValueCollection queryString = null, + object serializationState = null, + int retried = 0, + int? seed = null); } public interface ITransportValues diff --git a/src/Elasticsearch.Net/Connection/InMemoryConnection.cs b/src/Elasticsearch.Net/Connection/InMemoryConnection.cs index d2cf5869e90..44661c58c70 100644 --- a/src/Elasticsearch.Net/Connection/InMemoryConnection.cs +++ b/src/Elasticsearch.Net/Connection/InMemoryConnection.cs @@ -1,17 +1,14 @@ using System; using System.Collections.Generic; +using System.IO; using System.Net; using System.Text; using System.Threading.Tasks; namespace Elasticsearch.Net.Connection { - /// - /// - /// public class InMemoryConnection : HttpConnection { - private ElasticsearchResponse _fixedResult; private readonly byte[] _fixedResultBytes = Encoding.UTF8.GetBytes("{ \"USING NEST IN MEMORY CONNECTION\" : null }"); public InMemoryConnection(IConnectionConfigurationValues settings) @@ -19,33 +16,30 @@ public InMemoryConnection(IConnectionConfigurationValues settings) { } - public InMemoryConnection(IConnectionConfigurationValues settings, ElasticsearchResponse fixedResult) - : base(settings) - { - this._fixedResult = fixedResult; - } - protected override ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null) + protected override ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) { - return this.ReturnConnectionStatus(request, data); + return this.ReturnConnectionStatus(request, data, deserializationState); } - private ElasticsearchResponse ReturnConnectionStatus(HttpWebRequest request, byte[] data) + private ElasticsearchResponse ReturnConnectionStatus(HttpWebRequest request, byte[] data, object deserializationState = null) { var method = request.Method; var path = request.RequestUri.ToString(); - var cs = ElasticsearchResponse.Create(this._ConnectionSettings, 200, method, path, data, _fixedResultBytes); - _ConnectionSettings.ConnectionStatusHandler(cs); - return cs; + using (var ms = new MemoryStream(_fixedResultBytes)) + { + var cs = ElasticsearchResponse.Create(this._ConnectionSettings, 200, method, path, data, ms, deserializationState); + _ConnectionSettings.ConnectionStatusHandler(cs); + return cs; + } } - protected override Task DoAsyncRequest(HttpWebRequest request, byte[] data = null) + protected override Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) { - return Task.Factory.StartNew(() => + return Task.Factory.StartNew>(() => { - var cs = this.ReturnConnectionStatus(request, data); - _ConnectionSettings.ConnectionStatusHandler(cs); + var cs = this.ReturnConnectionStatus(request, data, deserializationState); return cs; }); } diff --git a/src/Elasticsearch.Net/Connection/Transport.cs b/src/Elasticsearch.Net/Connection/Transport.cs index a0bf409ec39..f14f931f379 100644 --- a/src/Elasticsearch.Net/Connection/Transport.cs +++ b/src/Elasticsearch.Net/Connection/Transport.cs @@ -39,13 +39,10 @@ public Transport( //TODO: take the datetimeprovider from the connection pool? this._dateTimeProvider = dateTimeProvider ?? new DateTimeProvider(); - if (this._configurationValues.SniffsOnStartup) - this.Sniff(fromStartup: true); - else this._lastSniff = this._dateTimeProvider.Now(); } - private void Sniff(bool fromStartup = false) + public void Sniff(bool fromStartup = false) { this._connectionPool.Sniff(this._connection, fromStartup); this._lastSniff = this._dateTimeProvider.Now(); @@ -69,11 +66,12 @@ private int GetMaximumRetries() } - public ElasticsearchResponse DoRequest( + public ElasticsearchResponse DoRequest( string method, string path, object data = null, NameValueCollection queryString = null, + object deserializationState= null, int retried = 0, int? seed = null) { @@ -82,7 +80,7 @@ public ElasticsearchResponse DoRequest( if (queryString != null) path += queryString.ToQueryString(); var postData = PostData(data); - ElasticsearchResponse response = null; + ElasticsearchResponse response = null; int initialSeed; bool shouldPingHint; var baseUri = this._connectionPool.GetNext(seed, out initialSeed, out shouldPingHint); @@ -94,14 +92,17 @@ public ElasticsearchResponse DoRequest( this._connection.Ping(CreateUriToPath(baseUri, "")); var uri = CreateUriToPath(baseUri, path); - response = _doRequest(method, uri, postData); + response = _doRequest(method, uri, postData, deserializationState); if (response != null && response.SuccessOrKnownError) return response; } catch (Exception e) { + var maxRetries = this.GetMaximumRetries(); + if (maxRetries == 0 && retried == 0) + throw; seenError = true; - return RetryRequest(method, path, data, retried, baseUri, initialSeed, e); + return RetryRequest(method, path, data, deserializationState, retried, baseUri, initialSeed, e); } finally { @@ -109,52 +110,53 @@ public ElasticsearchResponse DoRequest( if (!seenError && response != null && response.SuccessOrKnownError) this._connectionPool.MarkAlive(baseUri); } - return RetryRequest(method, path, data, retried, baseUri, initialSeed, null); + return RetryRequest(method, path, data, deserializationState, retried, baseUri, initialSeed, null); } - private ElasticsearchResponse RetryRequest( - string method, string path, object data, int retried, Uri baseUri, + private ElasticsearchResponse RetryRequest( + string method, string path, object data, object deserializationState, int retried, Uri baseUri, int initialSeed, Exception e) { var maxRetries = this.GetMaximumRetries(); var exceptionMessage = "Unable to perform request: '{0} {1}' on any of the nodes after retrying {2} times." - .F( method, path, retried); + .F( method, path.IsNullOrEmpty() ? "/" : "", retried); this._connectionPool.MarkDead(baseUri, this._configurationValues.DeadTimeout, this._configurationValues.MaxDeadTimeout); if (this._configurationValues.SniffsOnConnectionFault && retried == 0) this.Sniff(); if (retried < maxRetries) { - return this.DoRequest(method, path, data, null, ++retried, initialSeed); + return this.DoRequest(method, path, data, null, deserializationState, ++retried, initialSeed); } throw new OutOfNodesException(exceptionMessage, e); } - private ElasticsearchResponse _doRequest(string method, Uri uri, byte[] postData) + private ElasticsearchResponse _doRequest(string method, Uri uri, byte[] postData, object deserializationState) { switch (method.ToLowerInvariant()) { case "post": - return this._connection.PostSync(uri, postData); + return this._connection.PostSync(uri, postData, deserializationState); case "put": - return this._connection.PutSync(uri, postData); + return this._connection.PutSync(uri, postData, deserializationState); case "delete": return postData == null || postData.Length == 0 - ? this._connection.DeleteSync(uri) - : this._connection.DeleteSync(uri, postData); + ? this._connection.DeleteSync(uri, deserializationState) + : this._connection.DeleteSync(uri, postData, deserializationState); case "head": - return this._connection.HeadSync(uri); + return this._connection.HeadSync(uri, deserializationState); case "get": - return this._connection.GetSync(uri); + return this._connection.GetSync(uri, deserializationState); } throw new Exception("Unknown HTTP method " + method); } - public Task DoRequestAsync( + public Task> DoRequestAsync( string method, string path, object data = null, NameValueCollection queryString = null, + object deserializationState = null, int retried = 0, int? seed = null) { @@ -173,24 +175,24 @@ public Task DoRequestAsync( } catch (Exception e) { - return this.RetryRequestAsync(method, path, data, retried, baseUri, initialSeed, e); + return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, e); } } var uri = CreateUriToPath(baseUri, path); - return _doRequestAsync(method, uri, postData).ContinueWith(t=> + return _doRequestAsync(method, uri, postData, deserializationState).ContinueWith(t=> { if (t.IsCanceled) return null; if (t.IsFaulted) - return this.RetryRequestAsync(method, path, data, retried, baseUri, initialSeed, t.Exception); + return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, t.Exception); if (t.Result.SuccessOrKnownError) return t; - return this.RetryRequestAsync(method, path, data, retried, baseUri, initialSeed, null); + return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, null); - }).Unwrap(); + }).Unwrap>(); } - private Task RetryRequestAsync( - string method, string path, object data, int retried, Uri baseUri, + private Task> RetryRequestAsync( + string method, string path, object data, object deserializationState, int retried, Uri baseUri, int initialSeed, Exception e) { var maxRetries = this.GetMaximumRetries(); @@ -201,26 +203,26 @@ private Task RetryRequestAsync( this.Sniff(); if (retried < maxRetries) { - return this.DoRequestAsync(method, path, data, null, ++retried, initialSeed); + return this.DoRequestAsync(method, path, data, null, deserializationState, ++retried, initialSeed); } throw new OutOfNodesException(exceptionMessage, e); } - private Task _doRequestAsync(string method, Uri uri, byte[] postData) + private Task> _doRequestAsync(string method, Uri uri, byte[] postData, object deserializationState) { switch (method.ToLowerInvariant()) { case "post": - return this._connection.Post(uri, postData); + return this._connection.Post(uri, postData, deserializationState); case "put": - return this._connection.Put(uri, postData); + return this._connection.Put(uri, postData, deserializationState); case "delete": return postData == null || postData.Length == 0 - ? this._connection.Delete(uri) - : this._connection.Delete(uri, postData); + ? this._connection.Delete(uri, deserializationState) + : this._connection.Delete(uri, postData, deserializationState); case "head": - return this._connection.Head(uri); + return this._connection.Head(uri, deserializationState); case "get": - return this._connection.Get(uri); + return this._connection.Get(uri, deserializationState); } throw new Exception("Unknown HTTP method " + method); } diff --git a/src/Elasticsearch.Net/Domain/ElasticsearchDynamic.cs b/src/Elasticsearch.Net/Domain/DynamicDictionary.cs similarity index 77% rename from src/Elasticsearch.Net/Domain/ElasticsearchDynamic.cs rename to src/Elasticsearch.Net/Domain/DynamicDictionary.cs index 2f0d9470393..818047d939c 100644 --- a/src/Elasticsearch.Net/Domain/ElasticsearchDynamic.cs +++ b/src/Elasticsearch.Net/Domain/DynamicDictionary.cs @@ -1,5 +1,6 @@ -//This is nancyfx's dynamicdictionary renamed to ElasticsearchDynamic -//it adds the ability to chain dynamic property access without binding on null ref errors. +//This is nancyfx's dynamicdictionary +//it is slightly modified to add the ability to chain dynamic property access of arbitrary depth +//without binding on null ref errors in between. using System; using System.Collections; @@ -11,9 +12,9 @@ namespace Elasticsearch.Net /// /// A dictionary that supports dynamic access. /// - public class ElasticsearchDynamic : + public class DynamicDictionary : DynamicObject, - IEquatable, + IEquatable, IEnumerable, IDictionary { @@ -22,12 +23,12 @@ public class ElasticsearchDynamic : /// /// Returns an empty dynamic dictionary. /// - /// A instance. - public static ElasticsearchDynamic Empty + /// A instance. + public static DynamicDictionary Empty { get { - return new ElasticsearchDynamic(); + return new DynamicDictionary(); } } @@ -35,11 +36,11 @@ public static ElasticsearchDynamic Empty /// Creates a dynamic dictionary from an instance. /// /// An instance, that the dynamic dictionary should be created from. - /// An instance. - public static ElasticsearchDynamic Create(IDictionary values) + /// An instance. + public static DynamicDictionary Create(IDictionary values) { - var instance = new ElasticsearchDynamic(); - + var instance = new DynamicDictionary(); + foreach (var key in values.Keys) { instance[key] = values[key]; @@ -128,11 +129,11 @@ public dynamic this[string name] } /// - /// Indicates whether the current is equal to another object of the same type. + /// Indicates whether the current is equal to another object of the same type. /// /// if the current instance is equal to the parameter; otherwise, . - /// An instance to compare with this instance. - public bool Equals(ElasticsearchDynamic other) + /// An instance to compare with this instance. + public bool Equals(DynamicDictionary other) { if (ReferenceEquals(null, other)) { @@ -159,7 +160,7 @@ public override bool Equals(object obj) return true; } - return obj.GetType() == typeof(ElasticsearchDynamic) && this.Equals((ElasticsearchDynamic)obj); + return obj.GetType() == typeof(DynamicDictionary) && this.Equals((DynamicDictionary)obj); } /// @@ -172,16 +173,16 @@ IEnumerator> IEnumerable - /// Returns a hash code for this . + /// Returns a hash code for this . /// - /// A hash code for this , suitable for use in hashing algorithms and data structures like a hash table. + /// A hash code for this , suitable for use in hashing algorithms and data structures like a hash table. public override int GetHashCode() { return (dictionary != null ? dictionary.GetHashCode() : 0); } /// - /// Adds an element with the provided key and value to the . + /// Adds an element with the provided key and value to the . /// /// The object to use as the key of the element to add. /// The object to use as the value of the element to add. @@ -191,29 +192,29 @@ public void Add(string key, dynamic value) } /// - /// Adds an item to the . + /// Adds an item to the . /// - /// The object to add to the . + /// The object to add to the . public void Add(KeyValuePair item) { this[item.Key] = item.Value; } /// - /// Determines whether the contains an element with the specified key. + /// Determines whether the contains an element with the specified key. /// - /// if the contains an element with the key; otherwise, . + /// if the contains an element with the key; otherwise, . /// - /// The key to locate in the . + /// The key to locate in the . public bool ContainsKey(string key) { return this.dictionary.ContainsKey(key); } /// - /// Gets an containing the keys of the . + /// Gets an containing the keys of the . /// - /// An containing the keys of the . + /// An containing the keys of the . public ICollection Keys { get { return this.dictionary.Keys; } @@ -222,7 +223,7 @@ public ICollection Keys /// /// Gets the value associated with the specified key. /// - /// if the contains an element with the specified key; otherwise, . + /// if the contains an element with the specified key; otherwise, . /// The key whose value to get. /// When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the parameter. This parameter is passed uninitialized. public bool TryGetValue(string key, out dynamic value) @@ -231,7 +232,7 @@ public bool TryGetValue(string key, out dynamic value) } /// - /// Removes all items from the . + /// Removes all items from the . /// public void Clear() { @@ -239,20 +240,20 @@ public void Clear() } /// - /// Gets the number of elements contained in the . + /// Gets the number of elements contained in the . /// - /// The number of elements contained in the . + /// The number of elements contained in the . public int Count { get { return this.dictionary.Count; } } /// - /// Determines whether the contains a specific value. + /// Determines whether the contains a specific value. /// - /// if is found in the ; otherwise, . + /// if is found in the ; otherwise, . /// - /// The object to locate in the . + /// The object to locate in the . public bool Contains(KeyValuePair item) { var dynamicValueKeyValuePair = @@ -262,9 +263,9 @@ public bool Contains(KeyValuePair item) } /// - /// Copies the elements of the to an , starting at a particular index. + /// Copies the elements of the to an , starting at a particular index. /// - /// The one-dimensional that is the destination of the elements copied from the . The must have zero-based indexing. + /// The one-dimensional that is the destination of the elements copied from the . The must have zero-based indexing. /// The zero-based index in at which copying begins. public void CopyTo(KeyValuePair[] array, int arrayIndex) { @@ -272,7 +273,7 @@ public void CopyTo(KeyValuePair[] array, int arrayIndex) } /// - /// Gets a value indicating whether the is read-only. + /// Gets a value indicating whether the is read-only. /// /// Always returns . public bool IsReadOnly @@ -281,7 +282,7 @@ public bool IsReadOnly } /// - /// Removes the element with the specified key from the . + /// Removes the element with the specified key from the . /// /// if the element is successfully removed; otherwise, . /// The key of the element to remove. @@ -292,10 +293,10 @@ public bool Remove(string key) } /// - /// Removes the first occurrence of a specific object from the . + /// Removes the first occurrence of a specific object from the . /// - /// if was successfully removed from the ; otherwise, . - /// The object to remove from the . + /// if was successfully removed from the ; otherwise, . + /// The object to remove from the . public bool Remove(KeyValuePair item) { var dynamicValueKeyValuePair = @@ -305,9 +306,9 @@ public bool Remove(KeyValuePair item) } /// - /// Gets an containing the values in the . + /// Gets an containing the values in the . /// - /// An containing the values in the . + /// An containing the values in the . public ICollection Values { get { return this.dictionary.Values; } diff --git a/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs b/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs index 62523eb02c3..b3a75539fa8 100644 --- a/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs +++ b/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs @@ -675,6 +675,7 @@ public object ToType(Type conversionType, IFormatProvider provider) } #endregion + } } diff --git a/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs b/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs index 49bedf8e282..c7d3636b426 100644 --- a/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs +++ b/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs @@ -1,5 +1,7 @@ using System; +using System.CodeDom; using System.Collections.Generic; +using System.Configuration; using System.Globalization; using System.Linq; using System.Runtime.CompilerServices; @@ -7,6 +9,7 @@ using System.Text.RegularExpressions; using System.IO; using System.Net; +using System.Threading.Tasks; using Elasticsearch.Net; using Elasticsearch.Net.Connection; using Elasticsearch.Net.Serialization; @@ -14,33 +17,80 @@ namespace Elasticsearch.Net { - public class ElasticsearchResponse + public interface IElasticsearchResponse { - private static readonly string _printFormat; - private static readonly string _errorFormat; + bool Success { get; } + IConnectionConfigurationValues Settings { get; } + ConnectionError Error { get; } + string RequestMethod { get; } + string RequestUrl { get; } + byte[] Request { get; } + int? HttpStatusCode { get; } + + /// + /// The raw byte response, only set when IncludeRawResponse() is set on Connection configuration + /// + byte[] ResponseRaw { get; } + } + + internal static class ElasticsearchResponse + { + + public static Task> WrapAsync(Task>> responseTask) + { + return responseTask + .ContinueWith(t=>ToDynamicResponse(t.Result)); + } + + public static ElasticsearchResponse Wrap(ElasticsearchResponse> response) + { + return ToDynamicResponse(response); + } + + private static ElasticsearchResponse ToDynamicResponse(ElasticsearchResponse> response) + { + return new ElasticsearchResponse(response.Settings) + { + Error = response.Error, + HttpStatusCode = response.HttpStatusCode, + Request = response.Request, + RequestMethod = response.RequestMethod, + RequestUrl = response.RequestUrl, + Response = response.Response != null ? DynamicDictionary.Create(response.Response) : null, + ResponseRaw = response.ResponseRaw, + Serializer = response.Serializer, + Settings = response.Settings, + Success = response.Success + }; + } + } + + + public class ElasticsearchResponse : IElasticsearchResponse + { + protected static readonly string _printFormat; + protected static readonly string _errorFormat; public bool Success { get; protected internal set; } public ConnectionError Error { get; protected internal set; } + public string RequestMethod { get; protected internal set; } public string RequestUrl { get; protected internal set; } public IConnectionConfigurationValues Settings { get; protected internal set; } - private string _result; - public string Result - { - get { return _result ?? (_result = this.ResultBytes.Utf8String()); } - } - - public byte[] ResultBytes { get; protected internal set; } + public T Response { get; protected internal set; } + public byte[] Request { get; protected internal set; } + + /// + /// The raw byte response, only set when IncludeRawResponse() is set on Connection configuration + /// + public byte[] ResponseRaw { get; protected internal set; } public int? HttpStatusCode { get; protected internal set; } public IElasticsearchSerializer Serializer { get; protected internal set; } - private static readonly byte _startAccolade = (byte)'{'; - private ElasticsearchDynamic _response; - /// /// If the response is succesful or has a known error (400-500 range) /// The client should not retry this call @@ -51,72 +101,80 @@ internal bool SuccessOrKnownError { return this.Success || (this.HttpStatusCode.HasValue - && this.HttpStatusCode.Value != 503 && (this.HttpStatusCode.Value >= 400 && this.HttpStatusCode.Value < 599)); + && this.HttpStatusCode.Value != 503 + && ((this.HttpStatusCode.Value >= 400 && this.HttpStatusCode.Value < 599))); } } - public ElasticsearchDynamic Response - { - get - { - if (ResultBytes == null || ResultBytes.Length == 0) - return null; - if (ResultBytes[0] != _startAccolade) - return null; - - if (_response == null) - this._response = ElasticsearchDynamic.Create(this.Deserialize>()); - return this._response; - } - } - - - protected ElasticsearchResponse(IConnectionConfigurationValues settings) + protected internal ElasticsearchResponse(IConnectionConfigurationValues settings) { this.Settings = settings; this.Serializer = settings.Serializer; } - - public static ElasticsearchResponse CreateError(IConnectionConfigurationValues settings, Exception e, string method, string path, byte[] request) + private ElasticsearchResponse(IConnectionConfigurationValues settings, Exception e) : this(settings) { - var cs = new ElasticsearchResponse(settings, e); + this.Success = false; + this.Error = new ConnectionError(e); + if (this.Error.HttpStatusCode != null) + this.HttpStatusCode = (int) this.Error.HttpStatusCode; + this.ResponseRaw = this.Error.ResponseReadFromWebException; + } + private ElasticsearchResponse(IConnectionConfigurationValues settings, int statusCode) : this(settings) + { + this.Success = statusCode >= 200 && statusCode < 300; + if (!this.Success) + { + var exception = new ConnectionException(statusCode); + this.Error = new ConnectionError(exception); + } + this.HttpStatusCode = statusCode; + } + public static ElasticsearchResponse CreateError(IConnectionConfigurationValues settings, Exception e, string method, string path, byte[] request) + { + var cs = new ElasticsearchResponse(settings, e); cs.Request = request; cs.RequestUrl = path; cs.RequestMethod = method; return cs; } - public static ElasticsearchResponse Create(IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request, byte[] response) + public static ElasticsearchResponse Create(IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request) { - var cs = new ElasticsearchResponse(settings, statusCode, response); + var cs = new ElasticsearchResponse(settings, statusCode); cs.Request = request; cs.RequestUrl = path; cs.RequestMethod = method; return cs; } - - private ElasticsearchResponse(IConnectionConfigurationValues settings, Exception e) : this(settings) + public static ElasticsearchResponse Create( + IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request, Stream stream, object deserializeState = null) { - this.Success = false; - this.Error = new ConnectionError(e); - if (this.Error.ResponseReadFromWebException != null) - this.ResultBytes = this.Error.ResponseReadFromWebException; - if (this.Error.HttpStatusCode != null) - this.HttpStatusCode = (int) this.Error.HttpStatusCode; - } - private ElasticsearchResponse(IConnectionConfigurationValues settings, int statusCode, byte[] response = null) : this(settings) - { - this.Success = statusCode >= 200 && statusCode < 300; - if (!this.Success) + var cs = new ElasticsearchResponse(settings, statusCode); + cs.Request = request; + cs.RequestUrl = path; + cs.RequestMethod = method; + var s = stream; + using (var ms = new MemoryStream()) { - var exception = new ConnectionException(statusCode); - this.Error = new ConnectionError(exception); + if (settings.KeepRawResponse) + { + stream.CopyTo(ms); + cs.ResponseRaw = ms.ToArray(); + ms.Position = 0; + s = ms; + } + var customConverter = deserializeState as Func; + if (customConverter != null) + { + var t = customConverter(cs, s); + cs.Response = t; + } + else cs.Response = settings.Serializer.Deserialize(cs, s, deserializeState); + + return cs; } - this.ResultBytes = response; - this.HttpStatusCode = statusCode; } - static ElasticsearchResponse() { @@ -124,26 +182,25 @@ static ElasticsearchResponse() _errorFormat = "{0}\tExceptionMessage: {1}{0}\t StackTrace: {2}"; } - /// - /// Returns a response of type R based on the connection status by trying parsing status.Result into R - /// - /// - public virtual T Deserialize(bool allow404 = false) where T : class - { - return this.Serializer.Deserialize(this.ResultBytes); - } - public override string ToString() { var r = this; var e = r.Error; + string response = ""; + if (typeof(T) == typeof(string)) + response = this.Response as string; + else if (this.Settings.KeepRawResponse) + response = this.ResponseRaw.Utf8String(); + else if (typeof(T) == typeof(byte[])) + response = (this.Response as byte[]).Utf8String(); + var print = _printFormat.F( Environment.NewLine, r.HttpStatusCode.HasValue ? r.HttpStatusCode.Value.ToString(CultureInfo.InvariantCulture) : "-1", r.RequestMethod, r.RequestUrl, r.Request, - r.Result + response ); if (!this.Success) { diff --git a/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs b/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs index 59945c1f0b4..d3a60e1f5b0 100644 --- a/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs @@ -1741,21 +1741,21 @@ public ExplainQueryString Source(params string[] _source) } - internal string[] __source_exclude { get; set; } + internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field public ExplainQueryString SourceExclude(params string[] _source_exclude) { - this.__source_exclude = _source_exclude; + this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); return this; } - internal string[] __source_include { get; set; } + internal IEnumerable __source_include { get; set; } ///A list of fields to extract and return from the _source field public ExplainQueryString SourceInclude(params string[] _source_include) { - this.__source_include = _source_include; + this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); return this; } @@ -1841,21 +1841,21 @@ public GetQueryString Source(params string[] _source) } - internal string[] __source_exclude { get; set; } + internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field public GetQueryString SourceExclude(params string[] _source_exclude) { - this.__source_exclude = _source_exclude; + this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); return this; } - internal string[] __source_include { get; set; } + internal IEnumerable __source_include { get; set; } ///A list of fields to extract and return from the _source field public GetQueryString SourceInclude(params string[] _source_include) { - this.__source_include = _source_include; + this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); return this; } @@ -1888,12 +1888,12 @@ public GetQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// /// - public class GetSourceQueryString : FluentQueryString + public class SourceQueryString : FluentQueryString { internal string _parent { get; set; } ///The ID of the parent document - public GetSourceQueryString Parent(string parent) + public SourceQueryString Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1903,7 +1903,7 @@ public GetSourceQueryString Parent(string parent) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public GetSourceQueryString Preference(string preference) + public SourceQueryString Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1913,7 +1913,7 @@ public GetSourceQueryString Preference(string preference) internal bool _realtime { get; set; } ///Specify whether to perform the operation in realtime or search mode - public GetSourceQueryString Realtime(bool realtime) + public SourceQueryString Realtime(bool realtime) { this._realtime = realtime; this.Add("realtime", this._realtime); @@ -1923,7 +1923,7 @@ public GetSourceQueryString Realtime(bool realtime) internal bool _refresh { get; set; } ///Refresh the shard containing the document before performing the operation - public GetSourceQueryString Refresh(bool refresh) + public SourceQueryString Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -1933,7 +1933,7 @@ public GetSourceQueryString Refresh(bool refresh) internal string _routing { get; set; } ///Specific routing value - public GetSourceQueryString Routing(string routing) + public SourceQueryString Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1943,7 +1943,7 @@ public GetSourceQueryString Routing(string routing) internal string[] __source { get; set; } ///True or false to return the _source field or not, or a list of fields to return - public GetSourceQueryString Source(params string[] _source) + public SourceQueryString Source(params string[] _source) { this.__source = _source; this.Add("_source", this.__source); @@ -1951,21 +1951,21 @@ public GetSourceQueryString Source(params string[] _source) } - internal string[] __source_exclude { get; set; } + internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field - public GetSourceQueryString SourceExclude(params string[] _source_exclude) + public SourceQueryString SourceExclude(params string[] _source_exclude) { - this.__source_exclude = _source_exclude; + this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); return this; } - internal string[] __source_include { get; set; } + internal IEnumerable __source_include { get; set; } ///A list of fields to extract and return from the _source field - public GetSourceQueryString SourceInclude(params string[] _source_include) + public SourceQueryString SourceInclude(params string[] _source_include) { - this.__source_include = _source_include; + this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); return this; } @@ -1973,7 +1973,7 @@ public GetSourceQueryString SourceInclude(params string[] _source_include) internal int _version { get; set; } ///Explicit version number for concurrency control - public GetSourceQueryString Version(int version) + public SourceQueryString Version(int version) { this._version = version; this.Add("version", this._version); @@ -1983,7 +1983,7 @@ public GetSourceQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public GetSourceQueryString VersionType(VersionTypeOptions version_type) + public SourceQueryString VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -4021,21 +4021,21 @@ public MultiGetQueryString Source(params string[] _source) } - internal string[] __source_exclude { get; set; } + internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field public MultiGetQueryString SourceExclude(params string[] _source_exclude) { - this.__source_exclude = _source_exclude; + this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); return this; } - internal string[] __source_include { get; set; } + internal IEnumerable __source_include { get; set; } ///A list of fields to extract and return from the _source field public MultiGetQueryString SourceInclude(params string[] _source_include) { - this.__source_include = _source_include; + this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); return this; } diff --git a/src/Elasticsearch.Net/Domain/VoidResponse.cs b/src/Elasticsearch.Net/Domain/VoidResponse.cs new file mode 100644 index 00000000000..31eb883c611 --- /dev/null +++ b/src/Elasticsearch.Net/Domain/VoidResponse.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Elasticsearch.Net +{ + public class VoidResponse + { + } +} diff --git a/src/Elasticsearch.Net/Elasticsearch.Net.csproj b/src/Elasticsearch.Net/Elasticsearch.Net.csproj index 3d5c152b32a..7966698cbcd 100644 --- a/src/Elasticsearch.Net/Elasticsearch.Net.csproj +++ b/src/Elasticsearch.Net/Elasticsearch.Net.csproj @@ -44,6 +44,7 @@ + @@ -66,7 +67,7 @@ - + diff --git a/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs b/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs index 0c7ef40afed..e13dbc2e20d 100644 --- a/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs @@ -16,13 +16,22 @@ public partial class ElasticsearchClient : IElasticsearchClient { - ///POST /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse Bulk(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Bulk(object body, Func queryString = null, object deserializationState = null) { - var url = "_bulk".F(); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { @@ -30,16 +39,28 @@ public ElasticsearchResponse Bulk(object body, Func("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkAsync(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkAsync(object body, Func queryString = null, object deserializationState = null) { - var url = "_bulk".F(); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { @@ -47,18 +68,29 @@ public Task BulkAsync(object body, Func("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse Bulk(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Bulk(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_bulk".F(Encoded(index)); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { @@ -66,18 +98,28 @@ public ElasticsearchResponse Bulk(string index, object body, Func>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkAsync(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_bulk".F(Encoded(index)); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { @@ -85,20 +127,29 @@ public Task BulkAsync(string index, object body, Func>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one - ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Bulk(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -106,20 +157,30 @@ public ElasticsearchResponse Bulk(string index, string type, object body, Func("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one - ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkAsync(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -127,16 +188,31 @@ public Task BulkAsync(string index, string type, object b if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse BulkPut(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Bulk(string index, object body, Func queryString = null) { - var url = "_bulk".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -144,16 +220,30 @@ public ElasticsearchResponse BulkPut(object body, Func>("POST", url, body, + queryString: nv + )); } - ///PUT /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkPutAsync(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkAsync(string index, object body, Func queryString = null) { - var url = "_bulk".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -161,18 +251,31 @@ public Task BulkPutAsync(object body, Func>("POST", url, body, + queryString: nv + )); } - ///PUT /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse BulkPut(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_bulk".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { @@ -180,18 +283,32 @@ public ElasticsearchResponse BulkPut(string index, object body, Func("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkPutAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_bulk".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { @@ -199,20 +316,33 @@ public Task BulkPutAsync(string index, object body, Func< if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { @@ -220,20 +350,32 @@ public ElasticsearchResponse BulkPut(string index, string type, object body, Fun if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///PUT /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - public Task BulkPutAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { @@ -241,7978 +383,26996 @@ public Task BulkPutAsync(string index, string type, objec if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_cat/aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public ElasticsearchResponse CatAliases(Func queryString = null) + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse BulkPut(object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/aliases"; + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAliasesQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public Task CatAliasesAsync(Func queryString = null) + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkPutAsync(object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/aliases"; + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAliasesQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of alias names to return - public ElasticsearchResponse CatAliases(string name, Func queryString = null) + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse BulkPut(object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_cat/aliases/{0}".F(Encoded(name)); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAliasesQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of alias names to return - public Task CatAliasesAsync(string name, Func queryString = null) + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkPutAsync(object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_cat/aliases/{0}".F(Encoded(name)); + var url = "_bulk".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAliasesQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/allocation - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public ElasticsearchResponse CatAllocation(Func queryString = null) + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse BulkPut(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/allocation"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAllocationQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/allocation - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public Task CatAllocationAsync(Func queryString = null) + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkPutAsync(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/allocation"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAllocationQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/allocation/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of node IDs or names to limit the returned information - public ElasticsearchResponse CatAllocation(string node_id, Func queryString = null) + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse BulkPut(string index, object body, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cat/allocation/{0}".F(Encoded(node_id)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAllocationQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/allocation/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of node IDs or names to limit the returned information - public Task CatAllocationAsync(string node_id, Func queryString = null) + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkPutAsync(string index, object body, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cat/allocation/{0}".F(Encoded(node_id)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_bulk".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatAllocationQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public ElasticsearchResponse CatCount(Func queryString = null) + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/count"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatCountQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - public Task CatCountAsync(Func queryString = null) + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> BulkPutAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_cat/count"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatCountQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/count/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of index names to limit the returned information - public ElasticsearchResponse CatCount(string index, Func queryString = null) + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "_cat/count/{0}".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatCountQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/count/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - ///A comma-separated list of index names to limit the returned information - public Task CatCountAsync(string index, Func queryString = null) + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> BulkPutAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "_cat/count/{0}".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatCountQueryString()); + var qs = queryString(new BulkQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///GET /_cat/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html
+ ///Represents a GET on /_cat/aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public ElasticsearchResponse CatHealth(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatAliases(Func queryString = null, object deserializationState = null) { - var url = "_cat/health"; + var url = "_cat/aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatHealthQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html
+ ///Represents a GET on /_cat/aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public Task CatHealthAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatAliasesAsync(Func queryString = null, object deserializationState = null) { - var url = "_cat/health"; + var url = "_cat/aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatHealthQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html
+ ///Represents a GET on /_cat/aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public ElasticsearchResponse CatHelp(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatAliases(Func queryString = null) { - var url = "_cat"; + var url = "_cat/aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatHelpQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html
+ ///Represents a GET on /_cat/aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public Task CatHelpAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatAliasesAsync(Func queryString = null) { - var url = "_cat"; + var url = "_cat/aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatHelpQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/indices - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///Represents a GET on /_cat/aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public ElasticsearchResponse CatIndices(Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatAliases(string name, Func queryString = null, object deserializationState = null) { - var url = "_cat/indices"; + name.ThrowIfNullOrEmpty("name"); + var url = "_cat/aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatIndicesQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/indices - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///Represents a GET on /_cat/aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - public Task CatIndicesAsync(Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatAliasesAsync(string name, Func queryString = null, object deserializationState = null) { - var url = "_cat/indices"; + name.ThrowIfNullOrEmpty("name"); + var url = "_cat/aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatIndicesQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/indices/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///Represents a GET on /_cat/aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - ///A comma-separated list of index names to limit the returned information - public ElasticsearchResponse CatIndices(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatAliases(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cat/indices/{0}".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_cat/aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatIndicesQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/indices/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///Represents a GET on /_cat/aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - ///A comma-separated list of index names to limit the returned information - public Task CatIndicesAsync(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatAliasesAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cat/indices/{0}".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_cat/aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatIndicesQueryString()); + var qs = queryString(new CatAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/master - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html
+ ///Represents a GET on /_cat/allocation + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public ElasticsearchResponse CatMaster(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatAllocation(Func queryString = null, object deserializationState = null) { - var url = "_cat/master"; + var url = "_cat/allocation"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatMasterQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/master - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html
+ ///Represents a GET on /_cat/allocation + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public Task CatMasterAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatAllocationAsync(Func queryString = null, object deserializationState = null) { - var url = "_cat/master"; + var url = "_cat/allocation"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatMasterQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html
+ ///Represents a GET on /_cat/allocation + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public ElasticsearchResponse CatNodes(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatAllocation(Func queryString = null) { - var url = "_cat/nodes"; + var url = "_cat/allocation"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatNodesQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html
+ ///Represents a GET on /_cat/allocation + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public Task CatNodesAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatAllocationAsync(Func queryString = null) { - var url = "_cat/nodes"; + var url = "_cat/allocation"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatNodesQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html
+ ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public ElasticsearchResponse CatPendingTasks(Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatAllocation(string node_id, Func queryString = null, object deserializationState = null) { - var url = "_cat/pending_tasks"; + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cat/allocation/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatPendingTasksQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html
+ ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public Task CatPendingTasksAsync(Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatAllocationAsync(string node_id, Func queryString = null, object deserializationState = null) { - var url = "_cat/pending_tasks"; + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cat/allocation/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatPendingTasksQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/recovery - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public ElasticsearchResponse CatRecovery(Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatAllocation(string node_id, Func queryString = null) { - var url = "_cat/recovery"; + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cat/allocation/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatRecoveryQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/recovery - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - public Task CatRecoveryAsync(Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatAllocationAsync(string node_id, Func queryString = null) { - var url = "_cat/recovery"; + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cat/allocation/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatRecoveryQueryString()); + var qs = queryString(new CatAllocationQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/recovery/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Represents a GET on /_cat/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - ///A comma-separated list of index names to limit the returned information - public ElasticsearchResponse CatRecovery(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatCount(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cat/recovery/{0}".F(Encoded(index)); + var url = "_cat/count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatRecoveryQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/recovery/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Represents a GET on /_cat/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - ///A comma-separated list of index names to limit the returned information - public Task CatRecoveryAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatCountAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cat/recovery/{0}".F(Encoded(index)); + var url = "_cat/count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatRecoveryQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/shards - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - public ElasticsearchResponse CatShards(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatCount(Func queryString = null) { - var url = "_cat/shards"; + var url = "_cat/count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatShardsQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/shards - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - public Task CatShardsAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatCountAsync(Func queryString = null) { - var url = "_cat/shards"; + var url = "_cat/count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatShardsQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/shards/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// ///A comma-separated list of index names to limit the returned information - public ElasticsearchResponse CatShards(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatCount(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "_cat/shards/{0}".F(Encoded(index)); + var url = "_cat/count/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatShardsQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/shards/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// ///A comma-separated list of index names to limit the returned information - public Task CatShardsAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatCountAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "_cat/shards/{0}".F(Encoded(index)); + var url = "_cat/count/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatShardsQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cat/thread_pool - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - public ElasticsearchResponse CatThreadPool(Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatCount(string index, Func queryString = null) { - var url = "_cat/thread_pool"; + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/count/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatThreadPoolQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cat/thread_pool - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - public Task CatThreadPoolAsync(Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatCountAsync(string index, Func queryString = null) { - var url = "_cat/thread_pool"; + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/count/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CatThreadPoolQueryString()); + var qs = queryString(new CatCountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /_cat/health + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html /// - ///A comma-separated list of scroll IDs to clear - public ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatHealth(Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + var url = "_cat/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearScrollQueryString()); + var qs = queryString(new CatHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /_cat/health + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html /// - ///A comma-separated list of scroll IDs to clear - public Task ClearScrollAsync(string scroll_id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatHealthAsync(Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + var url = "_cat/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearScrollQueryString()); + var qs = queryString(new CatHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Represents a GET on /_cat/health + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html /// - public ElasticsearchResponse ClusterGetSettings(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatHealth(Func queryString = null) { - var url = "_cluster/settings"; + var url = "_cat/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); + var qs = queryString(new CatHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Represents a GET on /_cat/health + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html /// - public Task ClusterGetSettingsAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatHealthAsync(Func queryString = null) { - var url = "_cluster/settings"; + var url = "_cat/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); + var qs = queryString(new CatHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cat + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html /// - public ElasticsearchResponse ClusterHealth(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatHelp(Func queryString = null, object deserializationState = null) { - var url = "_cluster/health"; + var url = "_cat"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterHealthQueryString()); + var qs = queryString(new CatHelpQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cat + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html /// - public Task ClusterHealthAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatHelpAsync(Func queryString = null, object deserializationState = null) { - var url = "_cluster/health"; + var url = "_cat"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterHealthQueryString()); + var qs = queryString(new CatHelpQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/health/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cat + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html /// - ///Limit the information returned to a specific index - public ElasticsearchResponse ClusterHealth(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatHelp(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cluster/health/{0}".F(Encoded(index)); + var url = "_cat"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterHealthQueryString()); + var qs = queryString(new CatHelpQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/health/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cat + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html /// - ///Limit the information returned to a specific index - public Task ClusterHealthAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatHelpAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "_cluster/health/{0}".F(Encoded(index)); + var url = "_cat"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterHealthQueryString()); + var qs = queryString(new CatHelpQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html
+ ///Represents a GET on /_cat/indices + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - public ElasticsearchResponse ClusterPendingTasks(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatIndices(Func queryString = null, object deserializationState = null) { - var url = "_cluster/pending_tasks"; + var url = "_cat/indices"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html
+ ///Represents a GET on /_cat/indices + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - public Task ClusterPendingTasksAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatIndicesAsync(Func queryString = null, object deserializationState = null) { - var url = "_cluster/pending_tasks"; + var url = "_cat/indices"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Represents a GET on /_cat/indices + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). - public ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatIndices(Func queryString = null) { - var url = "_cluster/settings".F(); + var url = "_cat/indices"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///PUT /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Represents a GET on /_cat/indices + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). - public Task ClusterPutSettingsAsync(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatIndicesAsync(Func queryString = null) { - var url = "_cluster/settings".F(); + var url = "_cat/indices"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_cluster/reroute - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html
+ ///Represents a GET on /_cat/indices/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) - public ElasticsearchResponse ClusterReroute(object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatIndices(string index, Func queryString = null, object deserializationState = null) { - var url = "_cluster/reroute".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/indices/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterRerouteQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_cluster/reroute - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html
+ ///Represents a GET on /_cat/indices/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) - public Task ClusterRerouteAsync(object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatIndicesAsync(string index, Func queryString = null, object deserializationState = null) { - var url = "_cluster/reroute".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/indices/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterRerouteQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/state - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/indices/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - public ElasticsearchResponse ClusterState(Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatIndices(string index, Func queryString = null) { - var url = "_cluster/state"; + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/indices/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/state - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/indices/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - public Task ClusterStateAsync(Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatIndicesAsync(string index, Func queryString = null) { - var url = "_cluster/state"; + index.ThrowIfNullOrEmpty("index"); + var url = "_cat/indices/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatIndicesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/state/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/master + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html /// - ///Limit the information returned to the specified metrics - public ElasticsearchResponse ClusterState(string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatMaster(Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_cluster/state/{0}".F(Encoded(metric)); + var url = "_cat/master"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatMasterQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/state/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/master + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html /// - ///Limit the information returned to the specified metrics - public Task ClusterStateAsync(string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatMasterAsync(Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_cluster/state/{0}".F(Encoded(metric)); + var url = "_cat/master"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatMasterQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/state/{metric}/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/master + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html /// - ///Limit the information returned to the specified metrics - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatMaster(Func queryString = null) { - metric.ThrowIfNullOrEmpty("metric"); - index.ThrowIfNullOrEmpty("index"); - var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); + var url = "_cat/master"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatMasterQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/state/{metric}/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cat/master + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html /// - ///Limit the information returned to the specified metrics - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task ClusterStateAsync(string metric, string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatMasterAsync(Func queryString = null) { - metric.ThrowIfNullOrEmpty("metric"); - index.ThrowIfNullOrEmpty("index"); - var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); + var url = "_cat/master"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStateQueryString()); + var qs = queryString(new CatMasterQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cat/nodes + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html /// - public ElasticsearchResponse ClusterStats(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatNodes(Func queryString = null, object deserializationState = null) { - var url = "_cluster/stats"; + var url = "_cat/nodes"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStatsQueryString()); + var qs = queryString(new CatNodesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cat/nodes + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html /// - public Task ClusterStatsAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatNodesAsync(Func queryString = null, object deserializationState = null) { - var url = "_cluster/stats"; + var url = "_cat/nodes"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStatsQueryString()); + var qs = queryString(new CatNodesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/stats/nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cat/nodes + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public ElasticsearchResponse ClusterStats(string node_id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatNodes(Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); + var url = "_cat/nodes"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStatsQueryString()); + var qs = queryString(new CatNodesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/stats/nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cat/nodes + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public Task ClusterStatsAsync(string node_id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatNodesAsync(Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); + var url = "_cat/nodes"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClusterStatsQueryString()); + var qs = queryString(new CatNodesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html /// - ///A query to restrict the results specified with the Query DSL (optional) - public ElasticsearchResponse Count(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatPendingTasks(Func queryString = null, object deserializationState = null) { - var url = "_count".F(); + var url = "_cat/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/pending_tasks + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html /// - ///A query to restrict the results specified with the Query DSL (optional) - public Task CountAsync(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatPendingTasksAsync(Func queryString = null, object deserializationState = null) { - var url = "_count".F(); + var url = "_cat/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html /// - ///A comma-separated list of indices to restrict the results - ///A query to restrict the results specified with the Query DSL (optional) - public ElasticsearchResponse Count(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatPendingTasks(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_count".F(Encoded(index)); + var url = "_cat/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/pending_tasks + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html /// - ///A comma-separated list of indices to restrict the results - ///A query to restrict the results specified with the Query DSL (optional) - public Task CountAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatPendingTasksAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_count".F(Encoded(index)); + var url = "_cat/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - ///A comma-separated list of types to restrict the results - ///A query to restrict the results specified with the Query DSL (optional) - public ElasticsearchResponse Count(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatRecovery(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); + var url = "_cat/recovery"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - ///A comma-separated list of types to restrict the results - ///A query to restrict the results specified with the Query DSL (optional) - public Task CountAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatRecoveryAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); + var url = "_cat/recovery"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - public ElasticsearchResponse CountGet(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatRecovery(Func queryString = null) { - var url = "_count"; + var url = "_cat/recovery"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - public Task CountGetAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatRecoveryAsync(Func queryString = null) { - var url = "_count"; + var url = "_cat/recovery"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - public ElasticsearchResponse CountGet(string index, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatRecovery(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_count".F(Encoded(index)); + var url = "_cat/recovery/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - public Task CountGetAsync(string index, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatRecoveryAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_count".F(Encoded(index)); + var url = "_cat/recovery/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - ///A comma-separated list of types to restrict the results - public ElasticsearchResponse CountGet(string index, string type, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatRecovery(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); + var url = "_cat/recovery/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - ///A comma-separated list of indices to restrict the results - ///A comma-separated list of types to restrict the results - public Task CountGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatRecoveryAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); + var url = "_cat/recovery/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountQueryString()); + var qs = queryString(new CatRecoveryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - public ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatShards(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); + var url = "_cat/shards"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - public Task CountPercolateGetAsync(string index, string type, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatShardsAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); + var url = "_cat/shards"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - public ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatShards(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/shards"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - public Task CountPercolateGetAsync(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatShardsAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/shards"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///The count percolator request definition using the percolate DSL - public ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatShards(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); + var url = "_cat/shards/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///The count percolator request definition using the percolate DSL - public Task CountPercolateAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatShardsAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); + var url = "_cat/shards/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ///The count percolator request definition using the percolate DSL - public ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatShards(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/shards/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - ///The index of the document being count percolated. - ///The type of the document being count percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ///The count percolator request definition using the percolate DSL - public Task CountPercolateAsync(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatShardsAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/shards/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CountPercolateQueryString()); + var qs = queryString(new CatShardsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html
+ ///Represents a GET on /_cat/thread_pool + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// - ///The name of the index - ///The type of the document - ///The document ID - public ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CatThreadPool(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/thread_pool"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteQueryString()); + var qs = queryString(new CatThreadPoolQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html
+ ///Represents a GET on /_cat/thread_pool + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// - ///The name of the index - ///The type of the document - ///The document ID - public Task DeleteAsync(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CatThreadPoolAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cat/thread_pool"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteQueryString()); + var qs = queryString(new CatThreadPoolQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a GET on /_cat/thread_pool + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// - ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices - ///A query to restrict the operation specified with the Query DSL - public ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CatThreadPool(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_query".F(Encoded(index)); + var url = "_cat/thread_pool"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteByQueryQueryString()); + var qs = queryString(new CatThreadPoolQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a GET on /_cat/thread_pool + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// - ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices - ///A query to restrict the operation specified with the Query DSL - public Task DeleteByQueryAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CatThreadPoolAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_query".F(Encoded(index)); + var url = "_cat/thread_pool"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteByQueryQueryString()); + var qs = queryString(new CatThreadPoolQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index}/{type}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices - ///A comma-separated list of types to restrict the operation - ///A query to restrict the operation specified with the Query DSL - public ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null) + ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteByQueryQueryString()); + var qs = queryString(new ClearScrollQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, body, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/{type}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices - ///A comma-separated list of types to restrict the operation - ///A query to restrict the operation specified with the Query DSL - public Task DeleteByQueryAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClearScrollAsync(string scroll_id, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteByQueryQueryString()); + var qs = queryString(new ClearScrollQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, body, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null) + ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExistsQueryString()); + var qs = queryString(new ClearScrollQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///HEAD /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public Task ExistsAsync(string index, string type, string id, Func queryString = null) + ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClearScrollAsync(string scroll_id, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExistsQueryString()); + var qs = queryString(new ClearScrollQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a GET on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index - ///The type of the document - ///The document ID - public ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterGetSettings(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExplainQueryString()); + var qs = queryString(new ClusterGetSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a GET on /_cluster/settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index - ///The type of the document - ///The document ID - public Task ExplainGetAsync(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterGetSettingsAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExplainQueryString()); + var qs = queryString(new ClusterGetSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a GET on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index - ///The type of the document - ///The document ID - ///The query definition using the Query DSL - public ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterGetSettings(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExplainQueryString()); + var qs = queryString(new ClusterGetSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a GET on /_cluster/settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index - ///The type of the document - ///The document ID - ///The query definition using the Query DSL - public Task ExplainAsync(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterGetSettingsAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ExplainQueryString()); + var qs = queryString(new ClusterGetSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /_cluster/health + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public ElasticsearchResponse Get(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterHealth(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /_cluster/health + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public Task GetAsync(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterHealthAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_source - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /_cluster/health + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document; use `_all` to fetch the first document matching the ID across all types - ///The document ID - public ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterHealth(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetSourceQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_source - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /_cluster/health + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document; use `_all` to fetch the first document matching the ID across all types - ///The document ID - public Task GetSourceAsync(string index, string type, string id, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterHealthAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetSourceQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document - ///The document - public ElasticsearchResponse Index(string index, string type, object body, Func queryString = null) + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterHealth(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_cluster/health/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document - ///The document - public Task IndexAsync(string index, string type, object body, Func queryString = null) + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterHealthAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_cluster/health/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document - ///Document ID - ///The document - public ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null) + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterHealth(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - ///The name of the index - ///The type of the document - ///Document ID - ///The document - public Task IndexAsync(string index, string type, string id, object body, Func queryString = null) + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterHealthAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/health/{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterHealthQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html /// - ///The name of the index - ///The type of the document - ///The document - public ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterPendingTasks(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_cluster/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/pending_tasks + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html /// - ///The name of the index - ///The type of the document - ///The document - public Task IndexPutAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterPendingTasksAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_cluster/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html /// - ///The name of the index - ///The type of the document - ///Document ID - ///The document - public ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterPendingTasks(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a GET on /_cluster/pending_tasks + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html /// - ///The name of the index - ///The type of the document - ///Document ID - ///The document - public Task IndexPutAsync(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterPendingTasksAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_cluster/pending_tasks"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexQueryString()); + var qs = queryString(new ClusterPendingTasksQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - public ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null) + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null, object deserializationState = null) { - var url = "_analyze"; + var url = "_cluster/settings".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterPutSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /_cluster/settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - public Task IndicesAnalyzeGetForAllAsync(Func queryString = null) + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterPutSettingsAsync(object body, Func queryString = null, object deserializationState = null) { - var url = "_analyze"; + var url = "_cluster/settings".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterPutSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index to scope the operation - public ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null) + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_analyze".F(Encoded(index)); + var url = "_cluster/settings".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterPutSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///GET /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /_cluster/settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ///The name of the index to scope the operation - public Task IndicesAnalyzeGetAsync(string index, Func queryString = null) + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterPutSettingsAsync(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_analyze".F(Encoded(index)); + var url = "_cluster/settings".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterPutSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///POST /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// - ///The text on which the analysis should be performed - public ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null) + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterReroute(object body, Func queryString = null, object deserializationState = null) { - var url = "_analyze".F(); + var url = "_cluster/reroute".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterRerouteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// - ///The text on which the analysis should be performed - public Task IndicesAnalyzeForAllAsync(object body, Func queryString = null) + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterRerouteAsync(object body, Func queryString = null, object deserializationState = null) { - var url = "_analyze".F(); + var url = "_cluster/reroute".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterRerouteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// - ///The name of the index to scope the operation - ///The text on which the analysis should be performed - public ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null) + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterReroute(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_analyze".F(Encoded(index)); + var url = "_cluster/reroute".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterRerouteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// - ///The name of the index to scope the operation - ///The text on which the analysis should be performed - public Task IndicesAnalyzeAsync(string index, object body, Func queryString = null) + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterRerouteAsync(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_analyze".F(Encoded(index)); + var url = "_cluster/reroute".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AnalyzeQueryString()); + var qs = queryString(new ClusterRerouteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///POST /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - public ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterState(Func queryString = null, object deserializationState = null) { - var url = "_cache/clear"; + var url = "_cluster/state"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - public Task IndicesClearCacheForAllAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterStateAsync(Func queryString = null, object deserializationState = null) { - var url = "_cache/clear"; + var url = "_cluster/state"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///A comma-separated list of index name to limit the operation - public ElasticsearchResponse IndicesClearCache(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterState(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_cache/clear".F(Encoded(index)); + var url = "_cluster/state"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///A comma-separated list of index name to limit the operation - public Task IndicesClearCacheAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterStateAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_cache/clear".F(Encoded(index)); + var url = "_cluster/state"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - public ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null) + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterState(string metric, Func queryString = null, object deserializationState = null) { - var url = "_cache/clear"; + metric.ThrowIfNullOrEmpty("metric"); + var url = "_cluster/state/{0}".F(Encoded(metric)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - public Task IndicesClearCacheGetForAllAsync(Func queryString = null) + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterStateAsync(string metric, Func queryString = null, object deserializationState = null) { - var url = "_cache/clear"; + metric.ThrowIfNullOrEmpty("metric"); + var url = "_cluster/state/{0}".F(Encoded(metric)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///A comma-separated list of index name to limit the operation - public ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null) + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterState(string metric, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_cache/clear".F(Encoded(index)); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_cluster/state/{0}".F(Encoded(metric)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /_cluster/state/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///A comma-separated list of index name to limit the operation - public Task IndicesClearCacheGetAsync(string index, Func queryString = null) + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterStateAsync(string metric, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_cache/clear".F(Encoded(index)); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_cluster/state/{0}".F(Encoded(metric)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ClearCacheQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_close - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///The name of the index - public ElasticsearchResponse IndicesClose(string index, Func queryString = null) + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null, object deserializationState = null) { + metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_close".F(Encoded(index)); + var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CloseIndexQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_close - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///The name of the index - public Task IndicesCloseAsync(string index, Func queryString = null) + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterStateAsync(string metric, string index, Func queryString = null, object deserializationState = null) { + metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_close".F(Encoded(index)); + var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CloseIndexQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///The name of the index - ///The configuration for the index (`settings` and `mappings`) - public ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null) + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null) { + metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CreateIndexQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// - ///The name of the index - ///The configuration for the index (`settings` and `mappings`) - public Task IndicesCreateAsync(string index, object body, Func queryString = null) + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterStateAsync(string metric, string index, Func queryString = null) { + metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CreateIndexQueryString()); + var qs = queryString(new ClusterStateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a GET on /_cluster/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///The name of the index - ///The configuration for the index (`settings` and `mappings`) - public ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterStats(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/stats"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CreateIndexQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a GET on /_cluster/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///The name of the index - ///The configuration for the index (`settings` and `mappings`) - public Task IndicesCreatePostAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterStatsAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/stats"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new CreateIndexQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html
+ ///Represents a GET on /_cluster/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices - public ElasticsearchResponse IndicesDelete(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterStats(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/stats"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteIndexQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html
+ ///Represents a GET on /_cluster/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices - public Task IndicesDeleteAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterStatsAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "_cluster/stats"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteIndexQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of index names (supports wildcards); use `_all` for all indices - ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. - public ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ClusterStats(string node_id, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of index names (supports wildcards); use `_all` for all indices - ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. - public Task IndicesDeleteAliasAsync(string index, string name, Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ClusterStatsAsync(string node_id, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html
+ ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of index names (supports wildcards); use `_all` for all indices - ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. - public ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ClusterStats(string node_id, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteMappingQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html
+ ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - ///A comma-separated list of index names (supports wildcards); use `_all` for all indices - ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. - public Task IndicesDeleteMappingAsync(string index, string type, Func queryString = null) + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ClusterStatsAsync(string node_id, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteMappingQueryString()); + var qs = queryString(new ClusterStatsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///DELETE /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///The name of the template - public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null) + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Count(object body, Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + var url = "_count".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteTemplateQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///The name of the template - public Task IndicesDeleteTemplateForAllAsync(string name, Func queryString = null) + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountAsync(object body, Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + var url = "_count".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteTemplateQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. - ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. - public ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null) + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Count(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "_count".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteWarmerQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///DELETE /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. - ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. - public Task IndicesDeleteWarmerAsync(string index, string name, Func queryString = null) + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountAsync(object body, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "_count".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new DeleteWarmerQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///HEAD /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html
+ ///Represents a POST on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of indices to check - public ElasticsearchResponse IndicesExists(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Count(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexExistsQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html
+ ///Represents a POST on /{index}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of indices to check - public Task IndicesExistsAsync(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountAsync(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}".F(Encoded(index)); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndexExistsQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of alias names to return - public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Count(string index, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///HEAD /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of alias names to return - public Task IndicesExistsAliasForAllAsync(string name, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountAsync(string index, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///HEAD /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - public ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Count(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - public Task IndicesExistsAliasAsync(string index, string name, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to filter aliases - public ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Count(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_alias".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///HEAD /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names to filter aliases - public Task IndicesExistsAliasAsync(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_alias".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///HEAD /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///The name of the template - public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountGet(Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + var url = "_count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///The name of the template - public Task IndicesExistsTemplateForAllAsync(string name, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountGetAsync(Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + var url = "_count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html
+ ///Represents a GET on /_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` to check the types across all indices - ///A comma-separated list of document types to check - public ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountGet(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///HEAD /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html
+ ///Represents a GET on /_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` to check the types across all indices - ///A comma-separated list of document types to check - public Task IndicesExistsTypeAsync(string index, string type, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountGetAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}".F(Encoded(index), Encoded(type)); + var url = "_count"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - public ElasticsearchResponse IndicesFlushForAll(Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountGet(string index, Func queryString = null, object deserializationState = null) { - var url = "_flush"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - public Task IndicesFlushForAllAsync(Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountGetAsync(string index, Func queryString = null, object deserializationState = null) { - var url = "_flush"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public ElasticsearchResponse IndicesFlush(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountGet(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_flush".F(Encoded(index)); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public Task IndicesFlushAsync(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountGetAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_flush".F(Encoded(index)); + var url = "{0}/_count".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - public ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountGet(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_flush"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/{type}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - public Task IndicesFlushGetForAllAsync(Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountGetAsync(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_flush"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountGet(string index, string type, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_flush".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/{type}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public Task IndicesFlushGetAsync(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountGetAsync(string index, string type, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_flush".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new FlushQueryString()); + var qs = queryString(new CountQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - public ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_alias"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - public Task IndicesGetAliasForAllAsync(Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountPercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_alias"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of alias names to return - public ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of alias names to return - public Task IndicesGetAliasForAllAsync(string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountPercolateGetAsync(string index, string type, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - public ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - public Task IndicesGetAliasAsync(string index, string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountPercolateGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - public ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_alias".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - public Task IndicesGetAliasAsync(string index, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountPercolateGetAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_alias".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - public ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_aliases"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - public Task IndicesGetAliasesForAllAsync(Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountPercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_aliases"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - public ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_aliases".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /{index}/_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - public Task IndicesGetAliasesAsync(string index, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountPercolateAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_aliases".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /{index}/_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to filter - public ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to filter - public Task IndicesGetAliasesAsync(string index, string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> CountPercolateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of alias names to filter - public ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_aliases/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of alias names to filter - public Task IndicesGetAliasesForAllAsync(string name, Func queryString = null) + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> CountPercolateAsync(string index, string type, string id, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_aliases/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate/count".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); + var qs = queryString(new CountPercolateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// - ///A comma-separated list of fields - public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null, object deserializationState = null) { - field.ThrowIfNullOrEmpty("field"); - var url = "_mapping/field/{0}".F(Encoded(field)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// - ///A comma-separated list of fields - public Task IndicesGetFieldMappingForAllAsync(string field, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> DeleteAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { - field.ThrowIfNullOrEmpty("field"); - var url = "_mapping/field/{0}".F(Encoded(field)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// - ///A comma-separated list of index names - ///A comma-separated list of fields - public ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - field.ThrowIfNullOrEmpty("field"); - var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// - ///A comma-separated list of index names - ///A comma-separated list of fields - public Task IndicesGetFieldMappingAsync(string index, string field, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> DeleteAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - field.ThrowIfNullOrEmpty("field"); - var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of document types - ///A comma-separated list of fields - public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null, object deserializationState = null) { - type.ThrowIfNullOrEmpty("type"); - field.ThrowIfNullOrEmpty("field"); - var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_query".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of document types - ///A comma-separated list of fields - public Task IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> DeleteByQueryAsync(string index, object body, Func queryString = null, object deserializationState = null) { - type.ThrowIfNullOrEmpty("type"); - field.ThrowIfNullOrEmpty("field"); - var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_query".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of index names - ///A comma-separated list of document types - ///A comma-separated list of fields - public ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - field.ThrowIfNullOrEmpty("field"); - var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); + var url = "{0}/_query".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, body, + queryString: nv + )); } - ///GET /{index}/_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of index names - ///A comma-separated list of document types - ///A comma-separated list of fields - public Task IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> DeleteByQueryAsync(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - field.ThrowIfNullOrEmpty("field"); - var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); + var url = "{0}/_query".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, body, + queryString: nv + )); } - ///GET /_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a DELETE on /{index}/{type}/_query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - public ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_mapping"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a DELETE on /{index}/{type}/_query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - public Task IndicesGetMappingForAllAsync(Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> DeleteByQueryAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_mapping"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a DELETE on /{index}/{type}/_query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of index names - public ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mapping".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, body, + queryString: nv + )); } - ///GET /{index}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a DELETE on /{index}/{type}/_query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///A comma-separated list of index names - public Task IndicesGetMappingAsync(string index, Func queryString = null) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> DeleteByQueryAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mapping".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new DeleteByQueryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, body, + queryString: nv + )); } - ///GET /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of document types - public ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null, object deserializationState = null) { + index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new ExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of document types - public Task IndicesGetMappingForAllAsync(string type, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ExistsAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { + index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new ExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of index names - ///A comma-separated list of document types - public ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new ExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /{index}/_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of index names - ///A comma-separated list of document types - public Task IndicesGetMappingAsync(string index, string type, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ExistsAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetMappingQueryString()); + var qs = queryString(new ExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - public ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_settings"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - public Task IndicesGetSettingsForAllAsync(Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ExplainGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_settings"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_settings".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesGetSettingsAsync(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ExplainGetAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_settings".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///The name of the settings that should be included - public ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///The name of the settings that should be included - public Task IndicesGetSettingsAsync(string index, string name, Func queryString = null) - { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ExplainAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///The name of the settings that should be included - public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_settings/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// - ///The name of the settings that should be included - public Task IndicesGetSettingsForAllAsync(string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ExplainAsync(string index, string type, string id, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_settings/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_explain".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetIndexSettingsQueryString()); + var qs = queryString(new ExplainQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_template - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - public ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Get(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_template"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetTemplateQueryString()); + var qs = queryString(new GetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_template - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - public Task IndicesGetTemplateForAllAsync(Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> GetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_template"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetTemplateQueryString()); + var qs = queryString(new GetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///The name of the template - public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Get(string index, string type, string id, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetTemplateQueryString()); + var qs = queryString(new GetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///The name of the template - public Task IndicesGetTemplateForAllAsync(string name, Func queryString = null) + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> GetAsync(string index, string type, string id, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetTemplateQueryString()); + var qs = queryString(new GetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - public ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null) + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_warmer"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new SourceQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - public Task IndicesGetWarmerForAllAsync(Func queryString = null) + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> GetSourceAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_warmer"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new SourceQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - public ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null) + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_warmer".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new SourceQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - public Task IndicesGetWarmerAsync(string index, Func queryString = null) + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> GetSourceAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_warmer".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_source".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new SourceQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Index(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public Task IndicesGetWarmerAsync(string index, string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndexAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Index(string index, string type, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public Task IndicesGetWarmerForAllAsync(string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndexAsync(string index, string type, object body, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - ///The name of the warmer (supports wildcards); leave empty to get all warmers - public Task IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndexAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new GetWarmerQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_open - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index - public ElasticsearchResponse IndicesOpen(string index, Func queryString = null) + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_open".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OpenIndexQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/_open - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index - public Task IndicesOpenAsync(string index, Func queryString = null) + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndexAsync(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_open".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OpenIndexQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///POST /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - public ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_optimize"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - public Task IndicesOptimizeForAllAsync(Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndexPutAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) { - var url = "_optimize"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesOptimize(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_optimize".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///POST /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesOptimizeAsync(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndexPutAsync(string index, string type, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_optimize".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///GET /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - public ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { - var url = "_optimize"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - public Task IndicesOptimizeGetForAllAsync(Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndexPutAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { - var url = "_optimize"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_optimize".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///GET /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesOptimizeGetAsync(string index, Func queryString = null) + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndexPutAsync(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_optimize".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new OptimizeQueryString()); + var qs = queryString(new IndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///PUT /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + var url = "_analyze"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public Task IndicesPutAliasAsync(string index, string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesAnalyzeGetForAllAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + var url = "_analyze"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + var url = "_analyze"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///PUT /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public Task IndicesPutAliasForAllAsync(string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesAnalyzeGetForAllAsync(Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + var url = "_analyze"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null) + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public Task IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null) + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesAnalyzeGetAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null) + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the alias to be created or updated - ///The settings for the alias, such as `routing` or `filter` - public Task IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null) + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesAnalyzeGetAsync(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_alias/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesPutAliasQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. - ///The name of the document type - ///The mapping definition - public ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null) + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + var url = "_analyze".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. - ///The name of the document type - ///The mapping definition - public Task IndicesPutMappingAsync(string index, string type, object body, Func queryString = null) + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesAnalyzeForAllAsync(object body, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + var url = "_analyze".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the document type - ///The mapping definition - public ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null) + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null) { - type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + var url = "_analyze".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///PUT /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the document type - ///The mapping definition - public Task IndicesPutMappingForAllAsync(string type, object body, Func queryString = null) + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesAnalyzeForAllAsync(object body, Func queryString = null) { - type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + var url = "_analyze".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. - ///The name of the document type - ///The mapping definition - public ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null) + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. - ///The name of the document type - ///The mapping definition - public Task IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null) + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesAnalyzeAsync(string index, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the document type - ///The mapping definition - public ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null) + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null) { - type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ///The name of the document type - ///The mapping definition - public Task IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null) + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesAnalyzeAsync(string index, object body, Func queryString = null) { - type.ThrowIfNullOrEmpty("type"); - var url = "_mapping/{0}".F(Encoded(type)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_analyze".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutMappingQueryString()); + var qs = queryString(new AnalyzeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///PUT /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a POST on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The index settings to be updated - public ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null, object deserializationState = null) { - var url = "_settings".F(); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new UpdateSettingsQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a POST on /_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The index settings to be updated - public Task IndicesPutSettingsForAllAsync(object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesClearCacheForAllAsync(Func queryString = null, object deserializationState = null) { - var url = "_settings".F(); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new UpdateSettingsQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a POST on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///The index settings to be updated - public ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_settings".F(Encoded(index)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new UpdateSettingsQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); } - ///PUT /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a POST on /_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///The index settings to be updated - public Task IndicesPutSettingsAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesClearCacheForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_settings".F(Encoded(index)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new UpdateSettingsQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); } - ///PUT /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the template - ///The template definition - public ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesClearCache(string index, Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutTemplateQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the template - ///The template definition - public Task IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesClearCacheAsync(string index, Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutTemplateQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the template - ///The template definition - public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesClearCache(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutTemplateQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); } - ///POST /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the template - ///The template definition - public Task IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesClearCacheAsync(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_template/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutTemplateQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); } - ///PUT /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesClearCacheGetForAllAsync(Func queryString = null, object deserializationState = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesClearCacheGetForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "_cache/clear"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///PUT /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesClearCacheGetAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null) + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesClearCacheGetAsync(string index, Func queryString = null) { - name.ThrowIfNullOrEmpty("name"); - var url = "_warmer/{0}".F(Encoded(name)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_cache/clear".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new ClearCacheQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/_close + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null) + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesClose(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "{0}/_close".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new CloseIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/_close + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null) + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesCloseAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + var url = "{0}/_close".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new CloseIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/_close + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null) + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesClose(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + var url = "{0}/_close".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new CloseIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/_close + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types - ///The name of the warmer - ///The search request definition for the warmer (query, filters, facets, sorting, etc) - public Task IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null) + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesCloseAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - name.ThrowIfNullOrEmpty("name"); - var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + var url = "{0}/_close".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PutWarmerQueryString()); + var qs = queryString(new CloseIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); } - ///POST /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a PUT on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - public ElasticsearchResponse IndicesRefreshForAll(Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_refresh"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a PUT on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - public Task IndicesRefreshForAllAsync(Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesCreateAsync(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_refresh"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a PUT on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesRefresh(string index, Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_refresh".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); } - ///POST /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a PUT on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesRefreshAsync(string index, Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesCreateAsync(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_refresh".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); } - ///GET /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - public ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_refresh"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - public Task IndicesRefreshGetForAllAsync(Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesCreatePostAsync(string index, object body, Func queryString = null, object deserializationState = null) { - var url = "_refresh"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_refresh".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesRefreshGetAsync(string index, Func queryString = null) + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesCreatePostAsync(string index, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_refresh".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new RefreshQueryString()); + var qs = queryString(new CreateIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Represents a DELETE on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// - public ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null) + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesDelete(string index, Func queryString = null, object deserializationState = null) { - var url = "_segments"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SegmentsQueryString()); + var qs = queryString(new DeleteIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Represents a DELETE on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// - public Task IndicesSegmentsForAllAsync(Func queryString = null) + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesDeleteAsync(string index, Func queryString = null, object deserializationState = null) { - var url = "_segments"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SegmentsQueryString()); + var qs = queryString(new DeleteIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Represents a DELETE on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesSegments(string index, Func queryString = null) + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesDelete(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_segments".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SegmentsQueryString()); + var qs = queryString(new DeleteIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Represents a DELETE on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesSegmentsAsync(string index, Func queryString = null) + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesDeleteAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_segments".F(Encoded(index)); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SegmentsQueryString()); + var qs = queryString(new DeleteIndexQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///POST /_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_gateway/snapshot"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotQueryString()); + var qs = queryString(new IndicesDeleteAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public Task IndicesSnapshotIndexForAllAsync(Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesDeleteAliasAsync(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_gateway/snapshot"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotQueryString()); + var qs = queryString(new IndicesDeleteAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_gateway/snapshot".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotQueryString()); + var qs = queryString(new IndicesDeleteAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///POST /{index}/_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names; use `_all` or empty string for all indices - public Task IndicesSnapshotIndexAsync(string index, Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesDeleteAliasAsync(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_gateway/snapshot".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotQueryString()); + var qs = queryString(new IndicesDeleteAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// - public ElasticsearchResponse IndicesStatsForAll(Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_stats"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// - public Task IndicesStatsForAllAsync(Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesDeleteMappingAsync(string index, string type, Func queryString = null, object deserializationState = null) { - var url = "_stats"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// - ///Limit the information returned the specific metrics. - public ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_stats/{0}".F(Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// - ///Limit the information returned the specific metrics. - public Task IndicesStatsForAllAsync(string metric, Func queryString = null) + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesDeleteMappingAsync(string index, string type, Func queryString = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_stats/{0}".F(Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesStats(string index, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_stats".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesStatsAsync(string index, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesDeleteTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_stats".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///Limit the information returned the specific metrics. - public ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a DELETE on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///Limit the information returned the specific metrics. - public Task IndicesStatsAsync(string index, string metric, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesDeleteTemplateForAllAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatsQueryString()); + var qs = queryString(new DeleteTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - public ElasticsearchResponse IndicesStatusForAll(Func queryString = null) + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_status"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatusQueryString()); + var qs = queryString(new DeleteWarmerQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - public Task IndicesStatusForAllAsync(Func queryString = null) + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesDeleteWarmerAsync(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_status"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatusQueryString()); + var qs = queryString(new DeleteWarmerQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesStatus(string index, Func queryString = null) + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_status".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatusQueryString()); + var qs = queryString(new DeleteWarmerQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); } - ///GET /{index}/_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - public Task IndicesStatusAsync(string index, Func queryString = null) + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesDeleteWarmerAsync(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_status".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new IndicesStatusQueryString()); + var qs = queryString(new DeleteWarmerQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); } - ///POST /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a HEAD on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// - ///The definition of `actions` to perform - public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null) + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExists(string index, Func queryString = null, object deserializationState = null) { - var url = "_aliases".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AliasQueryString()); + var qs = queryString(new IndexExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a HEAD on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// - ///The definition of `actions` to perform - public Task IndicesUpdateAliasesForAllAsync(object body, Func queryString = null) + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsAsync(string index, Func queryString = null, object deserializationState = null) { - var url = "_aliases".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new AliasQueryString()); + var qs = queryString(new IndexExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// - public ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null) + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExists(string index, Func queryString = null) { - var url = "_validate/query"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndexExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// - public Task IndicesValidateQueryGetForAllAsync(Func queryString = null) + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsAsync(string index, Func queryString = null) { - var url = "_validate/query"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndexExistsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_validate/query".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - public Task IndicesValidateQueryGetAsync(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsAliasForAllAsync(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_validate/query".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - public ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - public Task IndicesValidateQueryGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsAliasForAllAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///POST /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The query definition specified with the Query DSL - public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_validate/query".F(); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The query definition specified with the Query DSL - public Task IndicesValidateQueryForAllAsync(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsAliasAsync(string index, string name, Func queryString = null, object deserializationState = null) { - var url = "_validate/query".F(); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///The query definition specified with the Query DSL - public ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_validate/query".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///POST /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///The query definition specified with the Query DSL - public Task IndicesValidateQueryAsync(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsAliasAsync(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_validate/query".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - ///The query definition specified with the Query DSL - public ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a HEAD on /{index}/_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - ///The query definition specified with the Query DSL - public Task IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsAliasAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ValidateQueryQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a HEAD on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public ElasticsearchResponse Info(Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null) { - var url = ""; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new InfoQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///GET / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a HEAD on /{index}/_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public Task InfoAsync(Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsAliasAsync(string index, Func queryString = null) { - var url = ""; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new InfoQueryString()); + var qs = queryString(new IndicesExistsAliasQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - public ElasticsearchResponse MgetGet(Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null, object deserializationState = null) { - var url = "_mget"; + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - public Task MgetGetAsync(Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null) { - var url = "_mget"; + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///The name of the index - public ElasticsearchResponse MgetGet(string index, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mget".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// - ///The name of the index - public Task MgetGetAsync(string index, Func queryString = null) + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsTemplateForAllAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mget".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTemplateQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// - ///The name of the index - ///The type of the document - public ElasticsearchResponse MgetGet(string index, string type, Func queryString = null) + ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTypeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// - ///The name of the index - ///The type of the document - public Task MgetGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesExistsTypeAsync(string index, string type, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTypeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public ElasticsearchResponse Mget(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null) { - var url = "_mget".F(); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTypeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); } - ///POST /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public Task MgetAsync(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesExistsTypeAsync(string index, string type, Func queryString = null) { - var url = "_mget".F(); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new IndicesExistsTypeQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); } - ///POST /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a POST on /_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public ElasticsearchResponse Mget(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesFlushForAll(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mget".F(Encoded(index)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a POST on /_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public Task MgetAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesFlushForAllAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mget".F(Encoded(index)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a POST on /_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesFlushForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a POST on /_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - public Task MgetAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesFlushForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiGetQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a POST on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesFlush(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MoreLikeThisQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a POST on /{index}/_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - public Task MltGetAsync(string index, string type, string id, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesFlushAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MoreLikeThisQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a POST on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - ///A specific search request definition - public ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesFlush(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MoreLikeThisQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a POST on /{index}/_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) - ///The document ID - ///A specific search request definition - public Task MltAsync(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesFlushAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MoreLikeThisQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); } - ///GET /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - public ElasticsearchResponse MpercolateGet(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null, object deserializationState = null) { - var url = "_mpercolate"; + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - public Task MpercolateGetAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesFlushGetForAllAsync(Func queryString = null, object deserializationState = null) { - var url = "_mpercolate"; + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The index of the document being count percolated to use as default - public ElasticsearchResponse MpercolateGet(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mpercolate".F(Encoded(index)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The index of the document being count percolated to use as default - public Task MpercolateGetAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesFlushGetForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mpercolate".F(Encoded(index)); + var url = "_flush"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The index of the document being count percolated to use as default - ///The type of the document being percolated to use as default. - public ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The index of the document being count percolated to use as default - ///The type of the document being percolated to use as default. - public Task MpercolateGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesFlushGetAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The percolate request definitions (header & body pair), separated by newlines - public ElasticsearchResponse Mpercolate(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null) { - var url = "_mpercolate".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - ///The percolate request definitions (header & body pair), separated by newlines - public Task MpercolateAsync(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesFlushGetAsync(string index, Func queryString = null) { - var url = "_mpercolate".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_flush".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new FlushQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index of the document being count percolated to use as default - ///The percolate request definitions (header & body pair), separated by newlines - public ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mpercolate".F(Encoded(index)); + var url = "_alias"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index of the document being count percolated to use as default - ///The percolate request definitions (header & body pair), separated by newlines - public Task MpercolateAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasForAllAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mpercolate".F(Encoded(index)); + var url = "_alias"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index of the document being count percolated to use as default - ///The type of the document being percolated to use as default. - ///The percolate request definitions (header & body pair), separated by newlines - public ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + var url = "_alias"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index of the document being count percolated to use as default - ///The type of the document being percolated to use as default. - ///The percolate request definitions (header & body pair), separated by newlines - public Task MpercolateAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + var url = "_alias"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MpercolateQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public ElasticsearchResponse MsearchGet(Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null, object deserializationState = null) { - var url = "_msearch"; + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public Task MsearchGetAsync(Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasForAllAsync(string name, Func queryString = null, object deserializationState = null) { - var url = "_msearch"; + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - public ElasticsearchResponse MsearchGet(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_msearch".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - public Task MsearchGetAsync(string index, Func queryString = null) + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasForAllAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_msearch".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///A comma-separated list of document types to use as default - public ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///A comma-separated list of document types to use as default - public Task MsearchGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasAsync(string index, string name, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The request definitions (metadata-search request definition pairs), separated by newlines - public ElasticsearchResponse Msearch(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null) { - var url = "_msearch".F(); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The request definitions (metadata-search request definition pairs), separated by newlines - public Task MsearchAsync(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasAsync(string index, string name, Func queryString = null) { - var url = "_msearch".F(); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///The request definitions (metadata-search request definition pairs), separated by newlines - public ElasticsearchResponse Msearch(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_msearch".F(Encoded(index)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///The request definitions (metadata-search request definition pairs), separated by newlines - public Task MsearchAsync(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_msearch".F(Encoded(index)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///A comma-separated list of document types to use as default - ///The request definitions (metadata-search request definition pairs), separated by newlines - public ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to use as default - ///A comma-separated list of document types to use as default - ///The request definitions (metadata-search request definition pairs), separated by newlines - public Task MsearchAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + var url = "{0}/_alias".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MultiSearchQueryString()); + var qs = queryString(new GetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public ElasticsearchResponse MtermvectorsGet(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null, object deserializationState = null) { - var url = "_mtermvectors"; + var url = "_aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public Task MtermvectorsGetAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasesForAllAsync(Func queryString = null, object deserializationState = null) { - var url = "_mtermvectors"; + var url = "_aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - public ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mtermvectors".F(Encoded(index)); + var url = "_aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - public Task MtermvectorsGetAsync(string index, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasesForAllAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mtermvectors".F(Encoded(index)); + var url = "_aliases"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///The type of the document. - public ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + var url = "{0}/_aliases".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///The type of the document. - public Task MtermvectorsGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasesAsync(string index, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + var url = "{0}/_aliases".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public ElasticsearchResponse Mtermvectors(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null) { - var url = "_mtermvectors".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_aliases".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public Task MtermvectorsAsync(object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasesAsync(string index, Func queryString = null) { - var url = "_mtermvectors".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_aliases".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mtermvectors".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public Task MtermvectorsAsync(string index, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasesAsync(string index, string name, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_mtermvectors".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///The type of the document. - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///The index in which the document resides. - ///The type of the document. - ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - public Task MtermvectorsAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasesAsync(string index, string name, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new MtermvectorsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/nodes/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a GET on /_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null) + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null, object deserializationState = null) { - var url = "_cluster/nodes/hotthreads"; + name.ThrowIfNullOrEmpty("name"); + var url = "_aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesHotThreadsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/nodes/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a GET on /_aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - public Task NodesHotThreadsForAllAsync(Func queryString = null) + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetAliasesForAllAsync(string name, Func queryString = null, object deserializationState = null) { - var url = "_cluster/nodes/hotthreads"; + name.ThrowIfNullOrEmpty("name"); + var url = "_aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesHotThreadsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_cluster/nodes/{node_id}/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a GET on /_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null) + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + name.ThrowIfNullOrEmpty("name"); + var url = "_aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesHotThreadsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_cluster/nodes/{node_id}/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a GET on /_aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public Task NodesHotThreadsAsync(string node_id, Func queryString = null) + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetAliasesForAllAsync(string name, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + name.ThrowIfNullOrEmpty("name"); + var url = "_aliases/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesHotThreadsQueryString()); + var qs = queryString(new IndicesGetAliasesQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public ElasticsearchResponse NodesInfoForAll(Func queryString = null) + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null, object deserializationState = null) { - var url = "_nodes"; + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/field/{0}".F(Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_mapping/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public Task NodesInfoForAllAsync(Func queryString = null) + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetFieldMappingForAllAsync(string field, Func queryString = null, object deserializationState = null) { - var url = "_nodes"; + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/field/{0}".F(Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public ElasticsearchResponse NodesInfo(string node_id, Func queryString = null) + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_nodes/{0}".F(Encoded(node_id)); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/field/{0}".F(Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_mapping/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public Task NodesInfoAsync(string node_id, Func queryString = null) + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetFieldMappingForAllAsync(string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_nodes/{0}".F(Encoded(node_id)); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/field/{0}".F(Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of metrics you wish returned. Leave empty to return all. - public ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}".F(Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of metrics you wish returned. Leave empty to return all. - public Task NodesInfoForAllAsync(string metric, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetFieldMappingAsync(string index, string field, Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}".F(Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{node_id}/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///A comma-separated list of metrics you wish returned. Leave empty to return all. - public ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{node_id}/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///A comma-separated list of metrics you wish returned. Leave empty to return all. - public Task NodesInfoAsync(string node_id, string metric, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetFieldMappingAsync(string index, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + index.ThrowIfNullOrEmpty("index"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesInfoQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public ElasticsearchResponse NodesShutdownForAll(Func queryString = null) + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null, object deserializationState = null) { - var url = "_shutdown"; + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesShutdownQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public Task NodesShutdownForAllAsync(Func queryString = null) + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null, object deserializationState = null) { - var url = "_shutdown"; + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesShutdownQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_cluster/nodes/{node_id}/_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes - public ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null) + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesShutdownQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_cluster/nodes/{node_id}/_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes - public Task NodesShutdownAsync(string node_id, Func queryString = null) + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesShutdownQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public ElasticsearchResponse NodesStatsForAll(Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null, object deserializationState = null) { - var url = "_nodes/stats"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - public Task NodesStatsForAllAsync(Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null, object deserializationState = null) { - var url = "_nodes/stats"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{node_id}/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public ElasticsearchResponse NodesStats(string node_id, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_nodes/{0}/stats".F(Encoded(node_id)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{node_id}/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - public Task NodesStatsAsync(string node_id, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - var url = "_nodes/{0}/stats".F(Encoded(node_id)); + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + field.ThrowIfNullOrEmpty("field"); + var url = "{0}/_mapping/{1}/field/{2}".F(Encoded(index), Encoded(type), Encoded(field)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new IndicesGetFieldMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///Limit the information returned to the specified metrics - public ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/stats/{0}".F(Encoded(metric)); + var url = "_mapping"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///Limit the information returned to the specified metrics - public Task NodesStatsForAllAsync(string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetMappingForAllAsync(Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/stats/{0}".F(Encoded(metric)); + var url = "_mapping"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{node_id}/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - public ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + var url = "_mapping"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{node_id}/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - public Task NodesStatsAsync(string node_id, string metric, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetMappingForAllAsync(Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + var url = "_mapping"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - public ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null) + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - index_metric.ThrowIfNullOrEmpty("index_metric"); - var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mapping".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - public Task NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null) + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetMappingAsync(string index, Func queryString = null, object deserializationState = null) { - metric.ThrowIfNullOrEmpty("metric"); - index_metric.ThrowIfNullOrEmpty("index_metric"); - var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mapping".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_nodes/{node_id}/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - public ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null) + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - index_metric.ThrowIfNullOrEmpty("index_metric"); - var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mapping".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_nodes/{node_id}/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - public Task NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null) + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetMappingAsync(string index, Func queryString = null) { - node_id.ThrowIfNullOrEmpty("node_id"); - metric.ThrowIfNullOrEmpty("metric"); - index_metric.ThrowIfNullOrEmpty("index_metric"); - var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mapping".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new NodesStatsQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - public ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null) + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + var url = "_mapping/{0}".F(Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - public Task PercolateGetAsync(string index, string type, Func queryString = null) + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetMappingForAllAsync(string type, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + var url = "_mapping/{0}".F(Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - public ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null) + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_mapping/{0}".F(Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - public Task PercolateGetAsync(string index, string type, string id, Func queryString = null) + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetMappingForAllAsync(string type, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "_mapping/{0}".F(Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///The percolator request definition using the percolate DSL - public ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///The percolator request definition using the percolate DSL - public Task PercolateAsync(string index, string type, object body, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetMappingAsync(string index, string type, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ///The percolator request definition using the percolate DSL - public ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The index of the document being percolated. - ///The type of the document being percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ///The percolator request definition using the percolate DSL - public Task PercolateAsync(string index, string type, string id, object body, Func queryString = null) + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetMappingAsync(string index, string type, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); - id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PercolateQueryString()); + var qs = queryString(new GetMappingQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///HEAD / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a GET on /_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public ElasticsearchResponse Ping(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null, object deserializationState = null) { - var url = ""; + var url = "_settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PingQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("HEAD", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///HEAD / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a GET on /_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public Task PingAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetSettingsForAllAsync(Func queryString = null, object deserializationState = null) { - var url = ""; + var url = "_settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new PingQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("HEAD", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public ElasticsearchResponse ScrollGet(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null) { - var url = "_search/scroll"; + var url = "_settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public Task ScrollGetAsync(Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetSettingsForAllAsync(Func queryString = null) { - var url = "_search/scroll"; + var url = "_settings"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID - public ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID - public Task ScrollGetAsync(string scroll_id, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetSettingsAsync(string index, Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID if not passed by URL or query parameter. - public ElasticsearchResponse Scroll(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null) { - var url = "_search/scroll".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID if not passed by URL or query parameter. - public Task ScrollAsync(object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetSettingsAsync(string index, Func queryString = null) { - var url = "_search/scroll".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID - ///The scroll ID if not passed by URL or query parameter. - public ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /{index}/_settings/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///The scroll ID - ///The scroll ID if not passed by URL or query parameter. - public Task ScrollAsync(string scroll_id, object body, Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetSettingsAsync(string index, string name, Func queryString = null, object deserializationState = null) { - scroll_id.ThrowIfNullOrEmpty("scroll_id"); - var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new ScrollQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public ElasticsearchResponse SearchGet(Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null) { - var url = "_search"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_settings/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - public Task SearchGetAsync(Func queryString = null) + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetSettingsAsync(string index, string name, Func queryString = null) { - var url = "_search"; + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse SearchGet(string index, Func queryString = null) + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_search".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_settings/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_settings/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - public Task SearchGetAsync(string index, Func queryString = null) + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetSettingsForAllAsync(string name, Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_search".F(Encoded(index)); + name.ThrowIfNullOrEmpty("name"); + var url = "_settings/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to search; leave empty to perform the operation on all types - public ElasticsearchResponse SearchGet(string index, string type, Func queryString = null) + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "_settings/{0}".F(Encoded(name)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new GetIndexSettingsQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_settings/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to search; leave empty to perform the operation on all types - public Task SearchGetAsync(string index, string type, Func queryString = null) + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetSettingsForAllAsync(string name, Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + name.ThrowIfNullOrEmpty("name"); + var url = "_settings/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetIndexSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_template + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null, object deserializationState = null) + { + var url = "_template"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_template + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetTemplateForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_template"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_template + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null) + { + var url = "_template"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_template + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetTemplateForAllAsync(Func queryString = null) + { + var url = "_template"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetTemplateForAllAsync(string name, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_warmer + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null, object deserializationState = null) + { + var url = "_warmer"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_warmer + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetWarmerForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_warmer"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_warmer + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null) + { + var url = "_warmer"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_warmer + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetWarmerForAllAsync(Func queryString = null) + { + var url = "_warmer"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_warmer + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_warmer".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_warmer + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetWarmerAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_warmer".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_warmer + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_warmer".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_warmer + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetWarmerAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_warmer".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetWarmerAsync(string index, string name, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetWarmerAsync(string index, string name, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetWarmerForAllAsync(string name, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetWarmerForAllAsync(string name, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new GetWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_open + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesOpen(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_open".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OpenIndexQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_open + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesOpenAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_open".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OpenIndexQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_open + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesOpen(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_open".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OpenIndexQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_open + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesOpenAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_open".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OpenIndexQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null, object deserializationState = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesOptimizeForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesOptimizeForAllAsync(Func queryString = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesOptimize(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesOptimizeAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesOptimize(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesOptimizeAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null, object deserializationState = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesOptimizeGetForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesOptimizeGetForAllAsync(Func queryString = null) + { + var url = "_optimize"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesOptimizeGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesOptimizeGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_optimize".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new OptimizeQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutAliasAsync(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutAliasAsync(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_alias/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesPutAliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutMappingAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutMappingAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null, object deserializationState = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null, object deserializationState = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null, object deserializationState = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null, object deserializationState = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null) + { + type.ThrowIfNullOrEmpty("type"); + var url = "_mapping/{0}".F(Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutMappingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null, object deserializationState = null) + { + var url = "_settings".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutSettingsForAllAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_settings".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null) + { + var url = "_settings".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutSettingsForAllAsync(object body, Func queryString = null) + { + var url = "_settings".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutSettingsAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutSettingsAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_settings".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateSettingsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_template/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutTemplateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null) + { + name.ThrowIfNullOrEmpty("name"); + var url = "_warmer/{0}".F(Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + name.ThrowIfNullOrEmpty("name"); + var url = "{0}/{1}/_warmer/{2}".F(Encoded(index), Encoded(type), Encoded(name)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PutWarmerQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesRefreshForAll(Func queryString = null, object deserializationState = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesRefreshForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesRefreshForAll(Func queryString = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesRefreshForAllAsync(Func queryString = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesRefresh(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesRefreshAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesRefresh(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesRefreshAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null, object deserializationState = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesRefreshGetForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesRefreshGetForAllAsync(Func queryString = null) + { + var url = "_refresh"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesRefreshGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesRefreshGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_refresh".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new RefreshQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_segments + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null, object deserializationState = null) + { + var url = "_segments"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_segments + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesSegmentsForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_segments"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_segments + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null) + { + var url = "_segments"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_segments + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesSegmentsForAllAsync(Func queryString = null) + { + var url = "_segments"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_segments + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesSegments(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_segments".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_segments + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesSegmentsAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_segments".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_segments + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesSegments(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_segments".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_segments + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesSegmentsAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_segments".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SegmentsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null, object deserializationState = null) + { + var url = "_gateway/snapshot"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_gateway/snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesSnapshotIndexForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_gateway/snapshot"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null) + { + var url = "_gateway/snapshot"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_gateway/snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesSnapshotIndexForAllAsync(Func queryString = null) + { + var url = "_gateway/snapshot"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_gateway/snapshot".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesSnapshotIndexAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_gateway/snapshot".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_gateway/snapshot".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesSnapshotIndexAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_gateway/snapshot".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStatsForAll(Func queryString = null, object deserializationState = null) + { + var url = "_stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatsForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStatsForAll(Func queryString = null) + { + var url = "_stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatsForAllAsync(Func queryString = null) + { + var url = "_stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatsForAllAsync(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatsForAllAsync(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStats(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_stats".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatsAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_stats".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStats(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_stats".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatsAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_stats".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatsAsync(string index, string metric, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatsAsync(string index, string metric, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_status + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStatusForAll(Func queryString = null, object deserializationState = null) + { + var url = "_status"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_status + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatusForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_status"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_status + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStatusForAll(Func queryString = null) + { + var url = "_status"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_status + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatusForAllAsync(Func queryString = null) + { + var url = "_status"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_status + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesStatus(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_status".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_status + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesStatusAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_status".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_status + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesStatus(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_status".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_status + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesStatusAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_status".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new IndicesStatusQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null, object deserializationState = null) + { + var url = "_aliases".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new AliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesUpdateAliasesForAllAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_aliases".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new AliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null) + { + var url = "_aliases".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new AliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesUpdateAliasesForAllAsync(object body, Func queryString = null) + { + var url = "_aliases".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new AliasQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null, object deserializationState = null) + { + var url = "_validate/query"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryGetForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_validate/query"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null) + { + var url = "_validate/query"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryGetForAllAsync(Func queryString = null) + { + var url = "_validate/query"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null, object deserializationState = null) + { + var url = "_validate/query".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryForAllAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_validate/query".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null) + { + var url = "_validate/query".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryForAllAsync(object body, Func queryString = null) + { + var url = "_validate/query".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_validate/query".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ValidateQueryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on / + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Info(Func queryString = null, object deserializationState = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new InfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on / + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> InfoAsync(Func queryString = null, object deserializationState = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new InfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on / + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Info(Func queryString = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new InfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on / + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> InfoAsync(Func queryString = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new InfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MgetGet(Func queryString = null, object deserializationState = null) + { + var url = "_mget"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_mget"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MgetGet(Func queryString = null) + { + var url = "_mget"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetGetAsync(Func queryString = null) + { + var url = "_mget"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MgetGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MgetGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MgetGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MgetGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mget(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mget".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mget".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mget(object body, Func queryString = null) + { + var url = "_mget".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetAsync(object body, Func queryString = null) + { + var url = "_mget".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mget(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mget(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mget".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MgetAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MgetAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MltGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MltGetAsync(string index, string type, string id, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MltAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MltAsync(string index, string type, string id, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_mlt".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MoreLikeThisQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MpercolateGet(Func queryString = null, object deserializationState = null) + { + var url = "_mpercolate"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_mpercolate"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MpercolateGet(Func queryString = null) + { + var url = "_mpercolate"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateGetAsync(Func queryString = null) + { + var url = "_mpercolate"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MpercolateGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MpercolateGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mpercolate(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mpercolate".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mpercolate".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mpercolate(object body, Func queryString = null) + { + var url = "_mpercolate".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateAsync(object body, Func queryString = null) + { + var url = "_mpercolate".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mpercolate".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MpercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MpercolateAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MpercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MsearchGet(Func queryString = null, object deserializationState = null) + { + var url = "_msearch"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_msearch"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MsearchGet(Func queryString = null) + { + var url = "_msearch"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchGetAsync(Func queryString = null) + { + var url = "_msearch"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MsearchGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MsearchGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Msearch(object body, Func queryString = null, object deserializationState = null) + { + var url = "_msearch".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_msearch".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Msearch(object body, Func queryString = null) + { + var url = "_msearch".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchAsync(object body, Func queryString = null) + { + var url = "_msearch".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Msearch(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Msearch(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_msearch".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MsearchAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MsearchAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MultiSearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MtermvectorsGet(Func queryString = null, object deserializationState = null) + { + var url = "_mtermvectors"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_mtermvectors"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MtermvectorsGet(Func queryString = null) + { + var url = "_mtermvectors"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsGetAsync(Func queryString = null) + { + var url = "_mtermvectors"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mtermvectors(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mtermvectors".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_mtermvectors".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mtermvectors(object body, Func queryString = null) + { + var url = "_mtermvectors".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsAsync(object body, Func queryString = null) + { + var url = "_mtermvectors".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_mtermvectors".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> MtermvectorsAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> MtermvectorsAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new MtermvectorsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null, object deserializationState = null) + { + var url = "_cluster/nodes/hotthreads"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesHotThreadsForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_cluster/nodes/hotthreads"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null) + { + var url = "_cluster/nodes/hotthreads"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesHotThreadsForAllAsync(Func queryString = null) + { + var url = "_cluster/nodes/hotthreads"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesHotThreadsAsync(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesHotThreadsAsync(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesHotThreadsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesInfoForAll(Func queryString = null, object deserializationState = null) + { + var url = "_nodes"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesInfoForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_nodes"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesInfoForAll(Func queryString = null) + { + var url = "_nodes"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesInfoForAllAsync(Func queryString = null) + { + var url = "_nodes"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesInfo(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesInfoAsync(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesInfo(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesInfoAsync(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesInfoForAllAsync(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesInfoForAllAsync(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesInfoAsync(string node_id, string metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesInfoAsync(string node_id, string metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesInfoQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_shutdown + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesShutdownForAll(Func queryString = null, object deserializationState = null) + { + var url = "_shutdown"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_shutdown + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesShutdownForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_shutdown"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_shutdown + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesShutdownForAll(Func queryString = null) + { + var url = "_shutdown"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_shutdown + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesShutdownForAllAsync(Func queryString = null) + { + var url = "_shutdown"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesShutdownAsync(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesShutdownAsync(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesShutdownQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStatsForAll(Func queryString = null, object deserializationState = null) + { + var url = "_nodes/stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsForAllAsync(Func queryString = null, object deserializationState = null) + { + var url = "_nodes/stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStatsForAll(Func queryString = null) + { + var url = "_nodes/stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsForAllAsync(Func queryString = null) + { + var url = "_nodes/stats"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStats(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}/stats".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsAsync(string node_id, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}/stats".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStats(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}/stats".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsAsync(string node_id, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + var url = "_nodes/{0}/stats".F(Encoded(node_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsForAllAsync(string metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsForAllAsync(string metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/stats/{0}".F(Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsAsync(string node_id, string metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsAsync(string node_id, string metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + var url = "_nodes/{0}/stats/{1}".F(Encoded(node_id), Encoded(metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null, object deserializationState = null) + { + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null) + { + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/stats/{0}/{1}".F(Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null, object deserializationState = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null) + { + node_id.ThrowIfNullOrEmpty("node_id"); + metric.ThrowIfNullOrEmpty("metric"); + index_metric.ThrowIfNullOrEmpty("index_metric"); + var url = "_nodes/{0}/stats/{1}/{2}".F(Encoded(node_id), Encoded(metric), Encoded(index_metric)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new NodesStatsQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> PercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> PercolateGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> PercolateGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> PercolateGetAsync(string index, string type, string id, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> PercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> PercolateAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> PercolateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> PercolateAsync(string index, string type, string id, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_percolate".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PercolateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Ping(Func queryString = null, object deserializationState = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a HEAD on / + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> PingAsync(Func queryString = null, object deserializationState = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("HEAD", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Ping(Func queryString = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, + queryString: nv + )); + } + + ///Represents a HEAD on / + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> PingAsync(Func queryString = null) + { + var url = ""; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new PingQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ScrollGet(Func queryString = null, object deserializationState = null) + { + var url = "_search/scroll"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search/scroll + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ScrollGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_search/scroll"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ScrollGet(Func queryString = null) + { + var url = "_search/scroll"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_search/scroll + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ScrollGetAsync(Func queryString = null) + { + var url = "_search/scroll"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null, object deserializationState = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ScrollGetAsync(string scroll_id, Func queryString = null, object deserializationState = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ScrollGetAsync(string scroll_id, Func queryString = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Scroll(object body, Func queryString = null, object deserializationState = null) + { + var url = "_search/scroll".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search/scroll + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ScrollAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_search/scroll".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Scroll(object body, Func queryString = null) + { + var url = "_search/scroll".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_search/scroll + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ScrollAsync(object body, Func queryString = null) + { + var url = "_search/scroll".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null, object deserializationState = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> ScrollAsync(string scroll_id, object body, Func queryString = null, object deserializationState = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> ScrollAsync(string scroll_id, object body, Func queryString = null) + { + scroll_id.ThrowIfNullOrEmpty("scroll_id"); + var url = "_search/scroll/{0}".F(Encoded(scroll_id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new ScrollQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a GET on /_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SearchGet(Func queryString = null, object deserializationState = null) + { + var url = "_search"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchGetAsync(Func queryString = null, object deserializationState = null) + { + var url = "_search"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SearchGet(Func queryString = null) + { + var url = "_search"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchGetAsync(Func queryString = null) + { + var url = "_search"; + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SearchGet(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchGetAsync(string index, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SearchGet(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchGetAsync(string index, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SearchGet(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchGetAsync(string index, string type, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SearchGet(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /{index}/{type}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchGetAsync(string index, string type, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); + } + + ///Represents a POST on /_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Search(object body, Func queryString = null, object deserializationState = null) + { + var url = "_search".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchAsync(object body, Func queryString = null, object deserializationState = null) + { + var url = "_search".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Search(object body, Func queryString = null) + { + var url = "_search".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchAsync(object body, Func queryString = null) + { + var url = "_search".F(); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Search(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchAsync(string index, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Search(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchAsync(string index, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_search".F(Encoded(index)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Search(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SearchAsync(string index, string type, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Search(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SearchAsync(string index, string type, object body, Func queryString = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SearchQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("PUT", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotCreateRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); + } + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); + } + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotDeleteRepositoryAsync(string repository, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("DELETE", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, + queryString: nv + )); + } + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotDeleteRepositoryAsync(string repository, Func queryString = null) + { + repository.ThrowIfNullOrEmpty("repository"); + var url = "_snapshot/{0}".F(Encoded(repository)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, + queryString: nv + )); + } + + ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new SnapshotGetQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotGetAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null) + { + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///The search definition using the Query DSL - public ElasticsearchResponse Search(object body, Func queryString = null) + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null) { - var url = "_search".F(); + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///The search definition using the Query DSL - public Task SearchAsync(object body, Func queryString = null) + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotGetAsync(string repository, string snapshot, Func queryString = null) { - var url = "_search".F(); + repository.ThrowIfNullOrEmpty("repository"); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///The search definition using the Query DSL - public ElasticsearchResponse Search(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotGetRepository(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_search".F(Encoded(index)); + var url = "_snapshot"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///The search definition using the Query DSL - public Task SearchAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotGetRepositoryAsync(Func queryString = null, object deserializationState = null) { - index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_search".F(Encoded(index)); + var url = "_snapshot"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to search; leave empty to perform the operation on all types - ///The search definition using the Query DSL - public ElasticsearchResponse Search(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotGetRepository(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + var url = "_snapshot"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /_snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to search; leave empty to perform the operation on all types - ///The search definition using the Query DSL - public Task SearchAsync(string index, string type, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotGetRepositoryAsync(Func queryString = null) { - index.ThrowIfNullOrEmpty("index"); - type.ThrowIfNullOrEmpty("type"); - var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); + var url = "_snapshot"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SearchQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///PUT /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A repository name - ///A snapshot name - ///The snapshot definition - public ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null) + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null, object deserializationState = null) { repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_snapshot/{0}".F(Encoded(repository)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A repository name - ///A snapshot name - ///The snapshot definition - public Task SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null) + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotGetRepositoryAsync(string repository, Func queryString = null, object deserializationState = null) { repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_snapshot/{0}".F(Encoded(repository)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A repository name - ///A snapshot name - ///The snapshot definition - public ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null) + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null) { repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_snapshot/{0}".F(Encoded(repository)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - ///A repository name - ///A snapshot name - ///The snapshot definition - public Task SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null) + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotGetRepositoryAsync(string repository, Func queryString = null) { repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_snapshot/{0}".F(Encoded(repository)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateQueryString()); + var qs = queryString(new SnapshotGetRepositoryQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///PUT /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name - ///The repository definition - public ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null) + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) { repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); + var qs = queryString(new SnapshotRestoreQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("PUT", url, body, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///PUT /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name - ///The repository definition - public Task SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null) + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null) { repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); + var qs = queryString(new SnapshotRestoreQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("PUT", url, body, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name - ///The repository definition - public ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null) + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null) { repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); + var qs = queryString(new SnapshotRestoreQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name - ///The repository definition - public Task SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null) + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null) { repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + snapshot.ThrowIfNullOrEmpty("snapshot"); + var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); + var qs = queryString(new SnapshotRestoreQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///DELETE /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A snapshot name - public ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null) + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Suggest(object body, Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_suggest".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotDeleteQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A snapshot name - public Task SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null) + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SuggestAsync(object body, Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + var url = "_suggest".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotDeleteQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///DELETE /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A comma-separated list of repository names - public ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null) + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Suggest(object body, Func queryString = null) { - repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + var url = "_suggest".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///DELETE /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A comma-separated list of repository names - public Task SnapshotDeleteRepositoryAsync(string repository, Func queryString = null) + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SuggestAsync(object body, Func queryString = null) { - repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + var url = "_suggest".F(); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("DELETE", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A comma-separated list of snapshot names - public ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Suggest(string index, object body, Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /{index}/_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A comma-separated list of snapshot names - public Task SnapshotGetAsync(string repository, string snapshot, Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SuggestAsync(string index, object body, Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - public ElasticsearchResponse SnapshotGetRepository(Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Suggest(string index, object body, Func queryString = null) { - var url = "_snapshot"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///GET /_snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /{index}/_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - public Task SnapshotGetRepositoryAsync(Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SuggestAsync(string index, object body, Func queryString = null) { - var url = "_snapshot"; + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } - ///GET /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A comma-separated list of repository names - public ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SuggestGet(Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + var url = "_suggest"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A comma-separated list of repository names - public Task SnapshotGetRepositoryAsync(string repository, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SuggestGetAsync(Func queryString = null, object deserializationState = null) { - repository.ThrowIfNullOrEmpty("repository"); - var url = "_snapshot/{0}".F(Encoded(repository)); + var url = "_suggest"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_snapshot/{repository}/{snapshot}/_restore - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A snapshot name - ///Details of what to restore - public ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SuggestGet(Func queryString = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); + var url = "_suggest"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotRestoreQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///POST /_snapshot/{repository}/{snapshot}/_restore - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A repository name - ///A snapshot name - ///Details of what to restore - public Task SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SuggestGetAsync(Func queryString = null) { - repository.ThrowIfNullOrEmpty("repository"); - snapshot.ThrowIfNullOrEmpty("snapshot"); - var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); + var url = "_suggest"; NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SnapshotRestoreQueryString()); + var qs = queryString(new SuggestQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///POST /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///The request definition - public ElasticsearchResponse Suggest(object body, Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse SuggestGet(string index, Func queryString = null, object deserializationState = null) { - var url = "_suggest".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -8220,16 +27380,29 @@ public ElasticsearchResponse Suggest(object body, Func("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///The request definition - public Task SuggestAsync(object body, Func queryString = null) + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> SuggestGetAsync(string index, Func queryString = null, object deserializationState = null) { - var url = "_suggest".F(); + index.ThrowIfNullOrEmpty("index"); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -8237,18 +27410,30 @@ public Task SuggestAsync(object body, Func("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///The request definition - public ElasticsearchResponse Suggest(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse SuggestGet(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_suggest".F(Encoded(index)); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -8256,18 +27441,29 @@ public ElasticsearchResponse Suggest(string index, object body, Func>("GET", url, data: null, + queryString: nv + )); } - ///POST /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///The request definition - public Task SuggestAsync(string index, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> SuggestGetAsync(string index, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_suggest".F(Encoded(index)); + var url = "{0}/_suggest".F(Encoded(index)); NameValueCollection nv = null; if (queryString != null) { @@ -8275,89 +27471,169 @@ public Task SuggestAsync(string index, object body, Func< if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// - public ElasticsearchResponse SuggestGet(Func queryString = null) + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_suggest"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SuggestQueryString()); + var qs = queryString(new TermvectorQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// - public Task SuggestGetAsync(Func queryString = null) + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> TermvectorGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null) { - var url = "_suggest"; + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SuggestQueryString()); + var qs = queryString(new TermvectorQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("GET", url, data: null, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - public ElasticsearchResponse SuggestGet(string index, Func queryString = null) + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_suggest".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SuggestQueryString()); + var qs = queryString(new TermvectorQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - public Task SuggestGetAsync(string index, Func queryString = null) + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> TermvectorGetAsync(string index, string type, string id, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); - var url = "{0}/_suggest".F(Encoded(index)); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { - var qs = queryString(new SuggestQueryString()); + var qs = queryString(new TermvectorQueryString()); if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, + queryString: nv + )); } - ///GET /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. - public ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null) + ///Define parameters. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8365,21 +27641,34 @@ public ElasticsearchResponse TermvectorGet(string index, string type, string id, if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("GET", url, data: null, queryString: nv); + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///GET /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. - public Task TermvectorGetAsync(string index, string type, string id, Func queryString = null) + ///Define parameters. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> TermvectorAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8387,22 +27676,35 @@ public Task TermvectorGetAsync(string index, string type, if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("GET", url, data: null, queryString: nv); + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. ///Define parameters. See documentation. - public ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8410,22 +27712,34 @@ public ElasticsearchResponse Termvector(string index, string type, string id, ob if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. ///Define parameters. See documentation. - public Task TermvectorAsync(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> TermvectorAsync(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_termvector".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8433,22 +27747,104 @@ public Task TermvectorAsync(string index, string type, st if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); + } + + ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html + /// + ///The name of the index + ///The type of the document + ///Document ID + ///The request definition using either `script` or partial `doc` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequest("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); + } + + ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html + /// + ///The name of the index + ///The type of the document + ///Document ID + ///The request definition using either `script` or partial `doc` + ///Optional function to specify any additional querystring parameters for the request. + ///Optional state that will be passed to the deserialization call for the response + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + public Task> UpdateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null) + { + index.ThrowIfNullOrEmpty("index"); + type.ThrowIfNullOrEmpty("type"); + id.ThrowIfNullOrEmpty("id"); + var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); + NameValueCollection nv = null; + if (queryString != null) + { + var qs = queryString(new UpdateQueryString()); + if (qs != null) nv = this.ToNameValueCollection(qs); + } + + return this.DoRequestAsync("POST", url, body, + queryString: nv + , deserializationState: deserializationState + ); } - ///POST /{index}/{type}/{id}/_update - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html
+ ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html /// ///The name of the index ///The type of the document ///Document ID ///The request definition using either `script` or partial `doc` - public ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8456,22 +27852,34 @@ public ElasticsearchResponse Update(string index, string type, string id, object if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequest("POST", url, body, queryString: nv); + return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, + queryString: nv + )); } - ///POST /{index}/{type}/{id}/_update - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html
+ ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html /// ///The name of the index ///The type of the document ///Document ID ///The request definition using either `script` or partial `doc` - public Task UpdateAsync(string index, string type, string id, object body, Func queryString = null) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + public Task> UpdateAsync(string index, string type, string id, object body, Func queryString = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); id.ThrowIfNullOrEmpty("id"); - var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); + var url = "{0}/{1}/{2}/_update".F(Encoded(index), Encoded(type), Encoded(id)); NameValueCollection nv = null; if (queryString != null) { @@ -8479,7 +27887,9 @@ public Task UpdateAsync(string index, string type, string if (qs != null) nv = this.ToNameValueCollection(qs); } - return this.DoRequestAsync("POST", url, body, queryString: nv); + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, + queryString: nv + )); } } diff --git a/src/Elasticsearch.Net/ElasticsearchClient.cs b/src/Elasticsearch.Net/ElasticsearchClient.cs index 9003c4908bf..df33beb24da 100644 --- a/src/Elasticsearch.Net/ElasticsearchClient.cs +++ b/src/Elasticsearch.Net/ElasticsearchClient.cs @@ -34,6 +34,8 @@ public ElasticsearchClient( //neccessary to pass the serializer to ElasticsearchResponse this.Settings.Serializer = this.Transport.Serializer; + if (this.Settings.SniffsOnStartup) + this.Transport.Sniff(fromStartup: true); } protected NameValueCollection ToNameValueCollection(FluentQueryString qs) @@ -59,15 +61,15 @@ public string Encoded(object o) } - protected ElasticsearchResponse DoRequest(string method, string path, object data = null, NameValueCollection queryString = null) + protected ElasticsearchResponse DoRequest(string method, string path, object data = null, NameValueCollection queryString = null, object deserializationState = null) { - return this.Transport.DoRequest(method, path, data, queryString); + return this.Transport.DoRequest(method, path, data, queryString, deserializationState); } - protected Task DoRequestAsync(string method, string path, object data = null, NameValueCollection queryString = null) + protected Task> DoRequestAsync(string method, string path, object data = null, NameValueCollection queryString = null, object deserializationState = null) { - return this.Transport.DoRequestAsync(method, path, data, queryString); + return this.Transport.DoRequestAsync(method, path, data, queryString, deserializationState); } } } diff --git a/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs b/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs index 978390cafae..990d37efeb2 100644 --- a/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs @@ -5,9 +5,8 @@ using System.Text; using System.Threading.Tasks; using Elasticsearch.Net.Connection; -///Generated File Please Do Not Edit Manually -using Elasticsearch.Net.Serialization; +///Generated File Please Do Not Edit Manually namespace Elasticsearch.Net { /// @@ -21,2948 +20,15009 @@ namespace Elasticsearch.Net /// public interface IElasticsearchClient { - IConnectionConfigurationValues Settings { get; } - IElasticsearchSerializer Serializer { get; } + //IConnection Connection { get; } + //IConnectionConfigurationValues Settings { get; } + //IElasticsearchSerializer Serializer { get; } - ///POST /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Bulk(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> BulkAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Bulk(object body, Func queryString = null); + + ///Represents a POST on /_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> BulkAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse Bulk(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Bulk(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// + ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - Task BulkAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> BulkAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse Bulk(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Bulk(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> BulkAsync(string index, object body, Func queryString = null); - ///POST /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one + ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - Task BulkAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a POST on /{index}/{type}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ Task> BulkAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Bulk(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - Task BulkAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> BulkAsync(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse BulkPut(object body, Func queryString = null, object deserializationState = null); - ///PUT /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a PUT on /_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse BulkPut(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ Task> BulkPutAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse BulkPut(object body, Func queryString = null); + + ///Represents a PUT on /_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///The operation definition and data (action-data pairs), separated by newlines - Task BulkPutAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> BulkPutAsync(object body, Func queryString = null); - ///PUT /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse BulkPut(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /{index}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ElasticsearchResponse BulkPut(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - Task BulkPutAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> BulkPutAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ ///Represents a PUT on /{index}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///Default index for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse BulkPut(string index, object body, Func queryString = null); + + ///Represents a PUT on /{index}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one - ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /{index}/{type}/_bulk - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html
+ Task> BulkPutAsync(string index, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// ///Default index for items which don't provide one ///Default document type for items which don't provide one ///The operation definition and data (action-data pairs), separated by newlines - Task BulkPutAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
- ///
- ElasticsearchResponse CatAliases(Func queryString = null); + ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///GET /_cat/aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// - Task CatAliasesAsync(Func queryString = null); + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> BulkPutAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///GET /_cat/aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse BulkPut(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/_bulk + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html + /// + ///Default index for items which don't provide one + ///Default document type for items which don't provide one + ///The operation definition and data (action-data pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> BulkPutAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on /_cat/aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatAliases(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatAliasesAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatAliases(Func queryString = null); + + ///Represents a GET on /_cat/aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatAliasesAsync(Func queryString = null); + + ///Represents a GET on /_cat/aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// ///A comma-separated list of alias names to return - ElasticsearchResponse CatAliases(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html
+ ElasticsearchResponse CatAliases(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// ///A comma-separated list of alias names to return - Task CatAliasesAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/allocation - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
- ///
- ElasticsearchResponse CatAllocation(Func queryString = null); + Task> CatAliasesAsync(string name, Func queryString = null, object deserializationState = null); - ///GET /_cat/allocation - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///Represents a GET on /_cat/aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// - Task CatAllocationAsync(Func queryString = null); - - ///GET /_cat/allocation/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatAliases(string name, Func queryString = null); + + ///Represents a GET on /_cat/aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html + /// + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatAliasesAsync(string name, Func queryString = null); + + ///Represents a GET on /_cat/allocation + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatAllocation(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/allocation + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatAllocationAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/allocation + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatAllocation(Func queryString = null); + + ///Represents a GET on /_cat/allocation + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatAllocationAsync(Func queryString = null); + + ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// ///A comma-separated list of node IDs or names to limit the returned information - ElasticsearchResponse CatAllocation(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/allocation/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html
+ ElasticsearchResponse CatAllocation(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// ///A comma-separated list of node IDs or names to limit the returned information - Task CatAllocationAsync(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
- ///
- ElasticsearchResponse CatCount(Func queryString = null); + Task> CatAllocationAsync(string node_id, Func queryString = null, object deserializationState = null); - ///GET /_cat/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - Task CatCountAsync(Func queryString = null); - - ///GET /_cat/count/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatAllocation(string node_id, Func queryString = null); + + ///Represents a GET on /_cat/allocation/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// - ///A comma-separated list of index names to limit the returned information - ElasticsearchResponse CatCount(string index, Func queryString = null); - - ///GET /_cat/count/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html
+ ///A comma-separated list of node IDs or names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatAllocationAsync(string node_id, Func queryString = null); + + ///Represents a GET on /_cat/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatCount(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatCountAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatCount(Func queryString = null); + + ///Represents a GET on /_cat/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatCountAsync(Func queryString = null); + + ///Represents a GET on /_cat/count/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// ///A comma-separated list of index names to limit the returned information - Task CatCountAsync(string index, Func queryString = null); - - ///GET /_cat/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html
- ///
- ElasticsearchResponse CatHealth(Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html
- ///
- Task CatHealthAsync(Func queryString = null); + ElasticsearchResponse CatCount(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - ElasticsearchResponse CatHelp(Func queryString = null); + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html
- ///
- Task CatHelpAsync(Func queryString = null); + Task> CatCountAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/indices - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///Represents a GET on /_cat/count/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - ElasticsearchResponse CatIndices(Func queryString = null); - - ///GET /_cat/indices - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatCount(string index, Func queryString = null); + + ///Represents a GET on /_cat/count/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// - Task CatIndicesAsync(Func queryString = null); - - ///GET /_cat/indices/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatCountAsync(string index, Func queryString = null); + + ///Represents a GET on /_cat/health + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatHealth(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/health + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatHealthAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/health + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatHealth(Func queryString = null); + + ///Represents a GET on /_cat/health + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatHealthAsync(Func queryString = null); + + ///Represents a GET on /_cat + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatHelp(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatHelpAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatHelp(Func queryString = null); + + ///Represents a GET on /_cat + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatHelpAsync(Func queryString = null); + + ///Represents a GET on /_cat/indices + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatIndices(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/indices + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatIndicesAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/indices + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatIndices(Func queryString = null); + + ///Represents a GET on /_cat/indices + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatIndicesAsync(Func queryString = null); + + ///Represents a GET on /_cat/indices/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// ///A comma-separated list of index names to limit the returned information - ElasticsearchResponse CatIndices(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/indices/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html
+ ElasticsearchResponse CatIndices(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/indices/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// ///A comma-separated list of index names to limit the returned information - Task CatIndicesAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/master - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html
- ///
- ElasticsearchResponse CatMaster(Func queryString = null); + Task> CatIndicesAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/master - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html
+ ///Represents a GET on /_cat/indices/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - Task CatMasterAsync(Func queryString = null); - - ///GET /_cat/nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html
+ ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatIndices(string index, Func queryString = null); + + ///Represents a GET on /_cat/indices/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// - ElasticsearchResponse CatNodes(Func queryString = null); - - ///GET /_cat/nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html
+ ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatIndicesAsync(string index, Func queryString = null); + + ///Represents a GET on /_cat/master + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatMaster(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/master + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatMasterAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/master + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatMaster(Func queryString = null); + + ///Represents a GET on /_cat/master + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatMasterAsync(Func queryString = null); + + ///Represents a GET on /_cat/nodes + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatNodes(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/nodes + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatNodesAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/nodes + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatNodes(Func queryString = null); + + ///Represents a GET on /_cat/nodes + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatNodesAsync(Func queryString = null); + + ///Represents a GET on /_cat/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatPendingTasks(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/pending_tasks + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatPendingTasksAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatPendingTasks(Func queryString = null); + + ///Represents a GET on /_cat/pending_tasks + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatPendingTasksAsync(Func queryString = null); + + ///Represents a GET on /_cat/recovery + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatRecovery(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/recovery + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatRecoveryAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/recovery + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatRecovery(Func queryString = null); + + ///Represents a GET on /_cat/recovery + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatRecoveryAsync(Func queryString = null); + + ///Represents a GET on /_cat/recovery/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - Task CatNodesAsync(Func queryString = null); + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html
- ///
- ElasticsearchResponse CatPendingTasks(Func queryString = null); + ElasticsearchResponse CatRecovery(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - Task CatPendingTasksAsync(Func queryString = null); + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/recovery - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
- ///
- ElasticsearchResponse CatRecovery(Func queryString = null); + Task> CatRecoveryAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/recovery - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Represents a GET on /_cat/recovery/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// - Task CatRecoveryAsync(Func queryString = null); - - ///GET /_cat/recovery/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatRecovery(string index, Func queryString = null); + + ///Represents a GET on /_cat/recovery/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// ///A comma-separated list of index names to limit the returned information - ElasticsearchResponse CatRecovery(string index, Func queryString = null); - - ///GET /_cat/recovery/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatRecoveryAsync(string index, Func queryString = null); + + ///Represents a GET on /_cat/shards + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatShards(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/shards + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatShardsAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/shards + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatShards(Func queryString = null); + + ///Represents a GET on /_cat/shards + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatShardsAsync(Func queryString = null); + + ///Represents a GET on /_cat/shards/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// ///A comma-separated list of index names to limit the returned information - Task CatRecoveryAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/shards - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
- ///
- ElasticsearchResponse CatShards(Func queryString = null); + ElasticsearchResponse CatShards(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/shards - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// - Task CatShardsAsync(Func queryString = null); + ///A comma-separated list of index names to limit the returned information + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatShardsAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_cat/shards/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Represents a GET on /_cat/shards/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// ///A comma-separated list of index names to limit the returned information - ElasticsearchResponse CatShards(string index, Func queryString = null); - - ///GET /_cat/shards/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatShards(string index, Func queryString = null); + + ///Represents a GET on /_cat/shards/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// ///A comma-separated list of index names to limit the returned information - Task CatShardsAsync(string index, Func queryString = null); - - ///GET /_cat/thread_pool - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatShardsAsync(string index, Func queryString = null); + + ///Represents a GET on /_cat/thread_pool + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CatThreadPool(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/thread_pool + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CatThreadPoolAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cat/thread_pool + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CatThreadPool(Func queryString = null); + + ///Represents a GET on /_cat/thread_pool + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CatThreadPoolAsync(Func queryString = null); + + ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ElasticsearchResponse CatThreadPool(Func queryString = null); + ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cat/thread_pool - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html
- ///
- Task CatThreadPoolAsync(Func queryString = null); + ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null, object deserializationState = null); - ///DELETE /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///A comma-separated list of scroll IDs to clear - ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ Task> ClearScrollAsync(string scroll_id, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///A comma-separated list of scroll IDs to clear - Task ClearScrollAsync(string scroll_id, Func queryString = null); - - ///GET /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClearScroll(string scroll_id, Func queryString = null); + + ///Represents a DELETE on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ElasticsearchResponse ClusterGetSettings(Func queryString = null); - - ///GET /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///A comma-separated list of scroll IDs to clear + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClearScrollAsync(string scroll_id, Func queryString = null); + + ///Represents a GET on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterGetSettings(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterGetSettingsAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterGetSettings(Func queryString = null); + + ///Represents a GET on /_cluster/settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterGetSettingsAsync(Func queryString = null); + + ///Represents a GET on /_cluster/health + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterHealth(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/health + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterHealthAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/health + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterHealth(Func queryString = null); + + ///Represents a GET on /_cluster/health + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterHealthAsync(Func queryString = null); + + ///Represents a GET on /_cluster/health/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - Task ClusterGetSettingsAsync(Func queryString = null); + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
- ///
- ElasticsearchResponse ClusterHealth(Func queryString = null); + ElasticsearchResponse ClusterHealth(string index, Func queryString = null, object deserializationState = null); - ///GET /_cluster/health - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// - Task ClusterHealthAsync(Func queryString = null); + ///Limit the information returned to a specific index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterHealthAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_cluster/health/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Represents a GET on /_cluster/health/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - ElasticsearchResponse ClusterHealth(string index, Func queryString = null); - - ///GET /_cluster/health/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterHealth(string index, Func queryString = null); + + ///Represents a GET on /_cluster/health/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - Task ClusterHealthAsync(string index, Func queryString = null); - - ///GET /_cluster/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterHealthAsync(string index, Func queryString = null); + + ///Represents a GET on /_cluster/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterPendingTasks(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/pending_tasks + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterPendingTasksAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/pending_tasks + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterPendingTasks(Func queryString = null); + + ///Represents a GET on /_cluster/pending_tasks + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterPendingTasksAsync(Func queryString = null); + + ///Represents a PUT on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// - ElasticsearchResponse ClusterPendingTasks(Func queryString = null); + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/pending_tasks - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html
- ///
- Task ClusterPendingTasksAsync(Func queryString = null); + ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null, object deserializationState = null); - ///PUT /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ ///Represents a PUT on /_cluster/settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). - ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_cluster/settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html
+ Task> ClusterPutSettingsAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_cluster/settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html + /// + ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterPutSettings(object body, Func queryString = null); + + ///Represents a PUT on /_cluster/settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// ///The settings to be updated. Can be either `transient` or `persistent` (survives cluster restart). - Task ClusterPutSettingsAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterPutSettingsAsync(object body, Func queryString = null); - ///POST /_cluster/reroute - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) - ElasticsearchResponse ClusterReroute(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_cluster/reroute - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html
+ ElasticsearchResponse ClusterReroute(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_cluster/reroute + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) - Task ClusterRerouteAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/state - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
- ///
- ElasticsearchResponse ClusterState(Func queryString = null); + Task> ClusterRerouteAsync(object body, Func queryString = null, object deserializationState = null); - ///GET /_cluster/state - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a POST on /_cluster/reroute + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// - Task ClusterStateAsync(Func queryString = null); + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterReroute(object body, Func queryString = null); + + ///Represents a POST on /_cluster/reroute + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html + /// + ///The definition of `commands` to perform (`move`, `cancel`, `allocate`) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterRerouteAsync(object body, Func queryString = null); + + ///Represents a GET on /_cluster/state + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterState(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/state + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterStateAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/state + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterState(Func queryString = null); + + ///Represents a GET on /_cluster/state + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterStateAsync(Func queryString = null); + + ///Represents a GET on /_cluster/state/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterState(string metric, Func queryString = null, object deserializationState = null); - ///GET /_cluster/state/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cluster/state/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// ///Limit the information returned to the specified metrics - ElasticsearchResponse ClusterState(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/state/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ Task> ClusterStateAsync(string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/state/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterState(string metric, Func queryString = null); + + ///Represents a GET on /_cluster/state/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// ///Limit the information returned to the specified metrics - Task ClusterStateAsync(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterStateAsync(string metric, Func queryString = null); - ///GET /_cluster/state/{metric}/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// ///Limit the information returned to the specified metrics ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/state/{metric}/{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html
+ ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// ///Limit the information returned to the specified metrics ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task ClusterStateAsync(string metric, string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
- ///
- ElasticsearchResponse ClusterStats(Func queryString = null); + Task> ClusterStateAsync(string metric, string index, Func queryString = null, object deserializationState = null); - ///GET /_cluster/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterState(string metric, string index, Func queryString = null); + + ///Represents a GET on /_cluster/state/{metric}/{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html + /// + ///Limit the information returned to the specified metrics + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterStateAsync(string metric, string index, Func queryString = null); + + ///Represents a GET on /_cluster/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterStats(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ClusterStatsAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterStats(Func queryString = null); + + ///Represents a GET on /_cluster/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterStatsAsync(Func queryString = null); + + ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// - Task ClusterStatsAsync(Func queryString = null); + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ClusterStats(string node_id, Func queryString = null, object deserializationState = null); - ///GET /_cluster/stats/nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ElasticsearchResponse ClusterStats(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/stats/nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html
+ Task> ClusterStatsAsync(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ClusterStats(string node_id, Func queryString = null); + + ///Represents a GET on /_cluster/stats/nodes/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - Task ClusterStatsAsync(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ClusterStatsAsync(string node_id, Func queryString = null); - ///POST /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a POST on /_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A query to restrict the results specified with the Query DSL (optional) - ElasticsearchResponse Count(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ElasticsearchResponse Count(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Count(object body, Func queryString = null); + + ///Represents a POST on /_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// + ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) - Task CountAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ElasticsearchResponse Count(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) - ElasticsearchResponse Count(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a POST on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A comma-separated list of indices to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Count(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A query to restrict the results specified with the Query DSL (optional) - Task CountAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountAsync(string index, object body, Func queryString = null); - ///POST /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A query to restrict the results specified with the Query DSL (optional) - ElasticsearchResponse Count(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ElasticsearchResponse Count(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results ///A query to restrict the results specified with the Query DSL (optional) - Task CountAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///GET /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a POST on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Count(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - ElasticsearchResponse CountGet(Func queryString = null); + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///A query to restrict the results specified with the Query DSL (optional) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on /_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CountGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountGet(Func queryString = null); + + ///Represents a GET on /_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CountGet(string index, Func queryString = null, object deserializationState = null); - ///GET /_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /{index}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// - Task CountGetAsync(Func queryString = null); + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountGetAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /{index}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results - ElasticsearchResponse CountGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A comma-separated list of indices to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ Task> CountGetAsync(string index, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results - Task CountGetAsync(string index, Func queryString = null); + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ElasticsearchResponse CountGet(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results - ElasticsearchResponse CountGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountGetAsync(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html
+ ///Represents a GET on /{index}/{type}/_count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html + /// + ///A comma-separated list of indices to restrict the results + ///A comma-separated list of types to restrict the results + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// ///A comma-separated list of indices to restrict the results ///A comma-separated list of types to restrict the results - Task CountGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountGetAsync(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountPercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. - ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountPercolateGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountPercolateGetAsync(string index, string type, Func queryString = null); - ///GET /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. - Task CountPercolateGetAsync(string index, string type, Func queryString = null); + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> CountPercolateGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - Task CountPercolateGetAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountPercolateGetAsync(string index, string type, string id, Func queryString = null); - ///POST /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountPercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. ///The count percolator request definition using the percolate DSL - ElasticsearchResponse CountPercolate(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> CountPercolateAsync(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. ///The count percolator request definition using the percolate DSL - Task CountPercolateAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. ///The count percolator request definition using the percolate DSL - ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> CountPercolateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/{id}/_percolate/count - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated. + ///The type of the document being count percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The count percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_percolate/count + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated. ///The type of the document being count percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. ///The count percolator request definition using the percolate DSL - Task CountPercolateAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> CountPercolateAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null, object deserializationState = null); - ///DELETE /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html
+ ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// ///The name of the index ///The type of the document ///The document ID - ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html
+ Task> DeleteAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Delete(string index, string type, string id, Func queryString = null); + + ///Represents a DELETE on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// ///The name of the index ///The type of the document ///The document ID - Task DeleteAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> DeleteAsync(string index, string type, string id, Func queryString = null); - ///DELETE /{index}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices ///A query to restrict the operation specified with the Query DSL - ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/_query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices ///A query to restrict the operation specified with the Query DSL - Task DeleteByQueryAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> DeleteByQueryAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///DELETE /{index}/{type}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ ///Represents a DELETE on /{index}/_query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html + /// + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse DeleteByQuery(string index, object body, Func queryString = null); + + ///Represents a DELETE on /{index}/_query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices - ///A comma-separated list of types to restrict the operation ///A query to restrict the operation specified with the Query DSL - ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///DELETE /{index}/{type}/_query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html
+ Task> DeleteByQueryAsync(string index, object body, Func queryString = null); + + ///Represents a DELETE on /{index}/{type}/_query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices ///A comma-separated list of types to restrict the operation ///A query to restrict the operation specified with the Query DSL - Task DeleteByQueryAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///HEAD /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a DELETE on /{index}/{type}/_query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// - ///The name of the index - ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> DeleteByQueryAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/{type}/_query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html + /// + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func queryString = null); + + ///Represents a DELETE on /{index}/{type}/_query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html + /// + ///A comma-separated list of indices to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of types to restrict the operation + ///A query to restrict the operation specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> DeleteByQueryAsync(string index, string type, object body, Func queryString = null); + + ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ Task> ExistsAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - Task ExistsAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Exists(string index, string type, string id, Func queryString = null); + + ///Represents a HEAD on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ExistsAsync(string index, string type, string id, Func queryString = null); - ///GET /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// ///The name of the index ///The type of the document ///The document ID - ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// ///The name of the index ///The type of the document ///The document ID - Task ExplainGetAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ExplainGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ExplainGet(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_explain + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ExplainGetAsync(string index, string type, string id, Func queryString = null); - ///POST /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// ///The name of the index ///The type of the document ///The document ID ///The query definition using the Query DSL - ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/{id}/_explain - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html
+ ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// ///The name of the index ///The type of the document ///The document ID ///The query definition using the Query DSL - Task ExplainAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ExplainAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Explain(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_explain + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html + /// + ///The name of the index + ///The type of the document + ///The document ID + ///The query definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ExplainAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - ElasticsearchResponse Get(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ElasticsearchResponse Get(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - Task GetAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> GetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/{id}/_source - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Get(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> GetAsync(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types ///The document ID - ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> GetSourceAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/{id}/_source - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html
+ ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html + /// + ///The name of the index + ///The type of the document; use `_all` to fetch the first document matching the ID across all types + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse GetSource(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_source + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// ///The name of the index ///The type of the document; use `_all` to fetch the first document matching the ID across all types ///The document ID - Task GetSourceAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> GetSourceAsync(string index, string type, string id, Func queryString = null); + + ///Represents a POST on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Index(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a POST on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///The document - ElasticsearchResponse Index(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ Task> IndexAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///The document - Task IndexAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Index(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndexAsync(string index, string type, object body, Func queryString = null); - ///POST /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///Document ID ///The document - ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///Document ID ///The document - Task IndexAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndexAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a POST on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Index(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///Document ID ///The document - ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndexAsync(string index, string type, string id, object body, Func queryString = null); - ///PUT /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///The document - Task IndexPutAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ ///Represents a PUT on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndexPutAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document - ///Document ID ///The document - ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndexPut(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /{index}/{type}/{id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html
+ Task> IndexPutAsync(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// ///The name of the index ///The type of the document ///Document ID ///The document - Task IndexPutAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///GET /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null); + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndexPutAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///GET /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a PUT on /{index}/{type}/{id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html + /// + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/{id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// - Task IndicesAnalyzeGetForAllAsync(Func queryString = null); + ///The name of the index + ///The type of the document + ///Document ID + ///The document + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndexPutAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a GET on /_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesAnalyzeGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesAnalyzeGetForAll(Func queryString = null); + + ///Represents a GET on /_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesAnalyzeGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The name of the index to scope the operation - ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesAnalyzeGetAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a GET on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The name of the index to scope the operation - Task IndicesAnalyzeGetAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesAnalyzeGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///The name of the index to scope the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesAnalyzeGetAsync(string index, Func queryString = null); - ///POST /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The text on which the analysis should be performed - ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesAnalyzeForAllAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The text on which the analysis should be performed - Task IndicesAnalyzeForAllAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesAnalyzeForAll(object body, Func queryString = null); + + ///Represents a POST on /_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesAnalyzeForAllAsync(object body, Func queryString = null); - ///POST /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The name of the index to scope the operation ///The text on which the analysis should be performed - ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_analyze - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html
+ ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_analyze + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// ///The name of the index to scope the operation ///The text on which the analysis should be performed - Task IndicesAnalyzeAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesAnalyzeAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_analyze + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// - ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null); + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesAnalyze(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_analyze + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html + /// + ///The name of the index to scope the operation + ///The text on which the analysis should be performed + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesAnalyzeAsync(string index, object body, Func queryString = null); + + ///Represents a POST on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesClearCacheForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesClearCacheForAll(Func queryString = null); + + ///Represents a POST on /_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesClearCacheForAllAsync(Func queryString = null); + + ///Represents a POST on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesClearCache(string index, Func queryString = null, object deserializationState = null); - ///POST /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - Task IndicesClearCacheForAllAsync(Func queryString = null); + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesClearCacheAsync(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// ///A comma-separated list of index name to limit the operation - ElasticsearchResponse IndicesClearCache(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesClearCache(string index, Func queryString = null); + + ///Represents a POST on /{index}/_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesClearCacheAsync(string index, Func queryString = null); + + ///Represents a GET on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesClearCacheGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null); + + ///Represents a GET on /_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesClearCacheGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a GET on /{index}/_cache/clear + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// ///A comma-separated list of index name to limit the operation - Task IndicesClearCacheAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ Task> IndicesClearCacheGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_cache/clear + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html + /// + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_cache/clear + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// - ElasticsearchResponse IndicesClearCacheGetForAll(Func queryString = null); + ///A comma-separated list of index name to limit the operation + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesClearCacheGetAsync(string index, Func queryString = null); - ///GET /_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_close + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - Task IndicesClearCacheGetForAllAsync(Func queryString = null); + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesClose(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_close + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index name to limit the operation - ElasticsearchResponse IndicesClearCacheGet(string index, Func queryString = null); + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesCloseAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_cache/clear - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html
+ ///Represents a POST on /{index}/_close + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - ///A comma-separated list of index name to limit the operation - Task IndicesClearCacheGetAsync(string index, Func queryString = null); + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesClose(string index, Func queryString = null); + + ///Represents a POST on /{index}/_close + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_close - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ Task> IndicesCloseAsync(string index, Func queryString = null); + + ///Represents a PUT on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index - ElasticsearchResponse IndicesClose(string index, Func queryString = null); + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_close - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index - Task IndicesCloseAsync(string index, Func queryString = null); + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesCreateAsync(string index, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a PUT on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html + /// + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null); + + ///Represents a PUT on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index ///The configuration for the index (`settings` and `mappings`) - ElasticsearchResponse IndicesCreate(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesCreateAsync(string index, object body, Func queryString = null); - ///PUT /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a POST on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index ///The configuration for the index (`settings` and `mappings`) - Task IndicesCreateAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ ///Represents a POST on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index ///The configuration for the index (`settings` and `mappings`) - ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html
+ Task> IndicesCreatePostAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html + /// + ///The name of the index + ///The configuration for the index (`settings` and `mappings`) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesCreatePost(string index, object body, Func queryString = null); + + ///Represents a POST on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// ///The name of the index ///The configuration for the index (`settings` and `mappings`) - Task IndicesCreatePostAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesCreatePostAsync(string index, object body, Func queryString = null); - ///DELETE /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html
+ ///Represents a DELETE on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices - ElasticsearchResponse IndicesDelete(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html
+ ElasticsearchResponse IndicesDelete(string index, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices - Task IndicesDeleteAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesDeleteAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html + /// + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesDelete(string index, Func queryString = null); + + ///Represents a DELETE on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html + /// + ///A comma-separated list of indices to delete; use `_all` or `*` string to delete all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesDeleteAsync(string index, Func queryString = null); - ///DELETE /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. - ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesDeleteAliasAsync(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. - Task IndicesDeleteAliasAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func queryString = null); + + ///Represents a DELETE on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of aliases to delete (supports wildcards); use `_all` to delete all aliases for the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesDeleteAliasAsync(string index, string name, Func queryString = null); - ///DELETE /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. - ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html
+ ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// ///A comma-separated list of index names (supports wildcards); use `_all` for all indices ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. - Task IndicesDeleteMappingAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesDeleteMappingAsync(string index, string type, Func queryString = null, object deserializationState = null); - ///DELETE /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html + /// + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func queryString = null); + + ///Represents a DELETE on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html + /// + ///A comma-separated list of index names (supports wildcards); use `_all` for all indices + ///A comma-separated list of document types to delete (supports wildcards); use `_all` to delete all document types in the specified indices. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesDeleteMappingAsync(string index, string type, Func queryString = null); + + ///Represents a DELETE on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null, object deserializationState = null); - ///DELETE /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a DELETE on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - Task IndicesDeleteTemplateForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesDeleteTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func queryString = null); + + ///Represents a DELETE on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesDeleteTemplateForAllAsync(string name, Func queryString = null); + + ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. - ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null, object deserializationState = null); - ///DELETE /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. - Task IndicesDeleteWarmerAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html
+ Task> IndicesDeleteWarmerAsync(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func queryString = null); + + ///Represents a DELETE on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to delete warmers from (supports wildcards); use `_all` to perform the operation on all indices. + ///A comma-separated list of warmer names to delete (supports wildcards); use `_all` to delete all warmers in the specified indices. You must specify a name either in the uri or in the parameters. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesDeleteWarmerAsync(string index, string name, Func queryString = null); + + ///Represents a HEAD on /{index} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html + /// + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesExists(string index, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// ///A comma-separated list of indices to check - ElasticsearchResponse IndicesExists(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesExistsAsync(string index, Func queryString = null, object deserializationState = null); - ///HEAD /{index} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html
+ ///Represents a HEAD on /{index} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// ///A comma-separated list of indices to check - Task IndicesExistsAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExists(string index, Func queryString = null); + + ///Represents a HEAD on /{index} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html + /// + ///A comma-separated list of indices to check + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesExistsAsync(string index, Func queryString = null); - ///HEAD /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of alias names to return - ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of alias names to return - Task IndicesExistsAliasForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesExistsAliasForAllAsync(string name, Func queryString = null, object deserializationState = null); - ///HEAD /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a HEAD on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExistsAliasForAll(string name, Func queryString = null); + + ///Represents a HEAD on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesExistsAliasForAllAsync(string name, Func queryString = null); + + ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return - ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return - Task IndicesExistsAliasAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesExistsAliasAsync(string index, string name, Func queryString = null, object deserializationState = null); - ///HEAD /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null); + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExistsAlias(string index, string name, Func queryString = null); + + ///Represents a HEAD on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///HEAD /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesExistsAliasAsync(string index, string name, Func queryString = null); + + ///Represents a HEAD on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - Task IndicesExistsAliasAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesExistsAliasAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExistsAlias(string index, Func queryString = null); + + ///Represents a HEAD on /{index}/_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesExistsAliasAsync(string index, Func queryString = null); - ///HEAD /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a HEAD on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesExistsTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - Task IndicesExistsTemplateForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func queryString = null); + + ///Represents a HEAD on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesExistsTemplateForAllAsync(string name, Func queryString = null); - ///HEAD /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check - ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD /{index}/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html
+ ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on /{index}/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// ///A comma-separated list of index names; use `_all` to check the types across all indices ///A comma-separated list of document types to check - Task IndicesExistsTypeAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
- ///
- ElasticsearchResponse IndicesFlushForAll(Func queryString = null); + Task> IndicesExistsTypeAsync(string index, string type, Func queryString = null, object deserializationState = null); - ///POST /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a HEAD on /{index}/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// - Task IndicesFlushForAllAsync(Func queryString = null); - - ///POST /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesExistsType(string index, string type, Func queryString = null); + + ///Represents a HEAD on /{index}/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html + /// + ///A comma-separated list of index names; use `_all` to check the types across all indices + ///A comma-separated list of document types to check + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesExistsTypeAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesFlushForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesFlushForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesFlushForAll(Func queryString = null); + + ///Represents a POST on /_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesFlushForAllAsync(Func queryString = null); + + ///Represents a POST on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - ElasticsearchResponse IndicesFlush(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesFlush(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a POST on /{index}/_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - Task IndicesFlushAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
- ///
- ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null); + Task> IndicesFlushAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a POST on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesFlush(string index, Func queryString = null); + + ///Represents a POST on /{index}/_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// - Task IndicesFlushGetForAllAsync(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesFlushAsync(string index, Func queryString = null); + + ///Represents a GET on /_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesFlushGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesFlushGetForAll(Func queryString = null); + + ///Represents a GET on /_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesFlushGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_flush + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesFlushGetAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_flush - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html
+ ///Represents a GET on /{index}/_flush + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - Task IndicesFlushGetAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesFlushGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_flush + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesFlushGetAsync(string index, Func queryString = null); + + ///Represents a GET on /_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null); + + ///Represents a GET on /_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasForAllAsync(Func queryString = null); + + ///Represents a GET on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ElasticsearchResponse IndicesGetAliasForAll(Func queryString = null); + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesGetAliasForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null); + + ///Represents a GET on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - Task IndicesGetAliasForAllAsync(Func queryString = null); + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasForAllAsync(string name, Func queryString = null); - ///GET /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// + ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to return - ElasticsearchResponse IndicesGetAliasForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null, object deserializationState = null); - ///GET /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasAsync(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null); + + ///Represents a GET on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to return + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasAsync(string index, string name, Func queryString = null); + + ///Represents a GET on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_alias + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_alias + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null); + + ///Represents a GET on /{index}/_alias + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of alias names to return - Task IndicesGetAliasForAllAsync(string name, Func queryString = null); - - ///GET /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///A comma-separated list of index names to filter aliases + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasAsync(string index, Func queryString = null); + + ///Represents a GET on /_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasesForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null); + + ///Represents a GET on /_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasesForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - ElasticsearchResponse IndicesGetAlias(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - ///A comma-separated list of alias names to return - Task IndicesGetAliasAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesGetAliasesAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - ElasticsearchResponse IndicesGetAlias(string index, Func queryString = null); - - ///GET /{index}/_alias - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null); + + ///Represents a GET on /{index}/_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - Task IndicesGetAliasAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
- ///
- ElasticsearchResponse IndicesGetAliasesForAll(Func queryString = null); + Task> IndicesGetAliasesAsync(string index, Func queryString = null); - ///GET /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - Task IndicesGetAliasesForAllAsync(Func queryString = null); + ///A comma-separated list of index names to filter aliases + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null, object deserializationState = null); - ///GET /{index}/_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - ElasticsearchResponse IndicesGetAliases(string index, Func queryString = null); + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasesAsync(string index, string name, Func queryString = null, object deserializationState = null); - ///GET /{index}/_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /{index}/_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases - Task IndicesGetAliasesAsync(string index, Func queryString = null); - - ///GET /{index}/_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null); + + ///Represents a GET on /{index}/_aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to filter - ElasticsearchResponse IndicesGetAliases(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesGetAliasesAsync(string index, string name, Func queryString = null); + + ///Represents a GET on /_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// - ///A comma-separated list of index names to filter aliases ///A comma-separated list of alias names to filter - Task IndicesGetAliasesAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_aliases/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of alias names to filter - ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetAliasesForAllAsync(string name, Func queryString = null, object deserializationState = null); - ///GET /_aliases/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a GET on /_aliases/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of alias names to filter - Task IndicesGetAliasesForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetAliasesForAll(string name, Func queryString = null); + + ///Represents a GET on /_aliases/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of alias names to filter + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetAliasesForAllAsync(string name, Func queryString = null); + + ///Represents a GET on /_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ Task> IndicesGetFieldMappingForAllAsync(string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null); + + ///Represents a GET on /_mapping/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of fields - ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetFieldMappingForAllAsync(string field, Func queryString = null); - ///GET /_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// + ///A comma-separated list of index names ///A comma-separated list of fields - Task IndicesGetFieldMappingForAllAsync(string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null, object deserializationState = null); - ///GET /{index}/_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of index names ///A comma-separated list of fields - ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mapping/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ Task> IndicesGetFieldMappingAsync(string index, string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of index names + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func queryString = null); + + ///Represents a GET on /{index}/_mapping/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of index names ///A comma-separated list of fields - Task IndicesGetFieldMappingAsync(string index, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ Task> IndicesGetFieldMappingAsync(string index, string field, Func queryString = null); + + ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of document types ///A comma-separated list of fields - ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null, object deserializationState = null); - ///GET /_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of document types ///A comma-separated list of fields - Task IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ///A comma-separated list of index names ///A comma-separated list of document types ///A comma-separated list of fields - ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func queryString = null); + + ///Represents a GET on /_mapping/{type}/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null); - ///GET /{index}/_mapping/{type}/field/{field} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html
+ ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// ///A comma-separated list of index names ///A comma-separated list of document types ///A comma-separated list of fields - Task IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// - ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null); + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func queryString = null); + + ///Represents a GET on /{index}/_mapping/{type}/field/{field} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html + /// + ///A comma-separated list of index names + ///A comma-separated list of document types + ///A comma-separated list of fields + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null); + + ///Represents a GET on /_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetMappingForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetMappingForAll(Func queryString = null); + + ///Represents a GET on /_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetMappingForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - Task IndicesGetMappingForAllAsync(Func queryString = null); + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names - ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetMappingAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names - Task IndicesGetMappingAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetMapping(string index, Func queryString = null); + + ///Represents a GET on /{index}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///A comma-separated list of index names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetMappingAsync(string index, Func queryString = null); + + ///Represents a GET on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of document types - ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null, object deserializationState = null); - ///GET /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of document types - Task IndicesGetMappingForAllAsync(string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetMappingForAllAsync(string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetMappingForAll(string type, Func queryString = null); + + ///Represents a GET on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ///A comma-separated list of index names ///A comma-separated list of document types - ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetMappingForAllAsync(string type, Func queryString = null); + + ///Represents a GET on /{index}/_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names ///A comma-separated list of document types - Task IndicesGetMappingAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null); + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetMappingAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetMapping(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - Task IndicesGetSettingsForAllAsync(Func queryString = null); + ///A comma-separated list of index names + ///A comma-separated list of document types + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetMappingAsync(string index, string type, Func queryString = null); + + ///Represents a GET on /_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetSettingsForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetSettingsForAll(Func queryString = null); + + ///Represents a GET on /_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetSettingsForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetSettingsAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetSettings(string index, Func queryString = null); + + ///Represents a GET on /{index}/_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesGetSettingsAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetSettingsAsync(string index, Func queryString = null); + + ///Represents a GET on /{index}/_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The name of the settings that should be included - ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null, object deserializationState = null); - ///GET /{index}/_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Represents a GET on /{index}/_settings/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The name of the settings that should be included - Task IndicesGetSettingsAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ Task> IndicesGetSettingsAsync(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The name of the settings that should be included - ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null); - - ///GET /_settings/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetSettings(string index, string name, Func queryString = null); + + ///Represents a GET on /{index}/_settings/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The name of the settings that should be included - Task IndicesGetSettingsForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_template - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ Task> IndicesGetSettingsAsync(string index, string name, Func queryString = null); + + ///Represents a GET on /_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null); + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_template - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_settings/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// - Task IndicesGetTemplateForAllAsync(Func queryString = null); + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ Task> IndicesGetSettingsForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_settings/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetSettingsForAll(string name, Func queryString = null); + + ///Represents a GET on /_settings/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html + /// + ///The name of the settings that should be included + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetSettingsForAllAsync(string name, Func queryString = null); + + ///Represents a GET on /_template + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_template + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetTemplateForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_template + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetTemplateForAll(Func queryString = null); + + ///Represents a GET on /_template + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetTemplateForAllAsync(Func queryString = null); + + ///Represents a GET on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null, object deserializationState = null); - ///GET /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a GET on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template - Task IndicesGetTemplateForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesGetTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetTemplateForAll(string name, Func queryString = null); + + ///Represents a GET on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetTemplateForAllAsync(string name, Func queryString = null); + + ///Represents a GET on /_warmer + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_warmer + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetWarmerForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_warmer + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null); + + ///Represents a GET on /_warmer + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetWarmerForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_warmer + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - ElasticsearchResponse IndicesGetWarmerForAll(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_warmer + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - Task IndicesGetWarmerForAllAsync(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesGetWarmerAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_warmer + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null); + + ///Represents a GET on /{index}/_warmer + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - ElasticsearchResponse IndicesGetWarmer(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetWarmerAsync(string index, Func queryString = null); - ///GET /{index}/_warmer - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices - Task IndicesGetWarmerAsync(string index, Func queryString = null); + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null, object deserializationState = null); - ///GET /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices ///The name of the warmer (supports wildcards); leave empty to get all warmers - ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesGetWarmerAsync(string index, string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetWarmer(string index, string name, Func queryString = null); + + ///Represents a GET on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices ///The name of the warmer (supports wildcards); leave empty to get all warmers - Task IndicesGetWarmerAsync(string index, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetWarmerAsync(string index, string name, Func queryString = null); + + ///Represents a GET on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesGetWarmerForAllAsync(string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null); + + ///Represents a GET on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///The name of the warmer (supports wildcards); leave empty to get all warmers - ElasticsearchResponse IndicesGetWarmerForAll(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesGetWarmerForAllAsync(string name, Func queryString = null); - ///GET /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The name of the warmer (supports wildcards); leave empty to get all warmers - Task IndicesGetWarmerForAllAsync(string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The name of the warmer (supports wildcards); leave empty to get all warmers - ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The name of the warmer (supports wildcards); leave empty to get all warmers + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to restrict the operation; use `_all` to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The name of the warmer (supports wildcards); leave empty to get all warmers - Task IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_open - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ Task> IndicesGetWarmerAsync(string index, string type, string name, Func queryString = null); + + ///Represents a POST on /{index}/_open + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// ///The name of the index - ElasticsearchResponse IndicesOpen(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesOpen(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_open - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html
+ ///Represents a POST on /{index}/_open + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// ///The name of the index - Task IndicesOpenAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
- ///
- ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null); + Task> IndicesOpenAsync(string index, Func queryString = null, object deserializationState = null); - ///POST /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a POST on /{index}/_open + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// - Task IndicesOptimizeForAllAsync(Func queryString = null); - - ///POST /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesOpen(string index, Func queryString = null); + + ///Represents a POST on /{index}/_open + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesOpenAsync(string index, Func queryString = null); + + ///Represents a POST on /_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesOptimizeForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesOptimizeForAll(Func queryString = null); + + ///Represents a POST on /_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesOptimizeForAllAsync(Func queryString = null); + + ///Represents a POST on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesOptimize(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesOptimize(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a POST on /{index}/_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesOptimizeAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
- ///
- ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null); + Task> IndicesOptimizeAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a POST on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesOptimize(string index, Func queryString = null); + + ///Represents a POST on /{index}/_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesOptimizeAsync(string index, Func queryString = null); + + ///Represents a GET on /_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesOptimizeGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesOptimizeGetForAll(Func queryString = null); + + ///Represents a GET on /_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesOptimizeGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// - Task IndicesOptimizeGetForAllAsync(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_optimize + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesOptimizeGetAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_optimize - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html
+ ///Represents a GET on /{index}/_optimize + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesOptimizeGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_optimize + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesOptimizeGetAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesOptimizeGetAsync(string index, Func queryString = null); + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutAliasAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a PUT on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - Task IndicesPutAliasAsync(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func queryString = null); + + ///Represents a PUT on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutAliasAsync(string index, string name, object body, Func queryString = null); + + ///Represents a PUT on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null); + + ///Represents a PUT on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - Task IndicesPutAliasForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /{index}/_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///A comma-separated list of index names the alias should point to (supports wildcards); use `_all` or omit to perform the operation on all indices. ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - Task IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutAliasPostAsync(string index, string name, object body, Func queryString = null); + + ///Represents a POST on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null, object deserializationState = null); - ///POST /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /_alias/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_alias/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_alias/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The name of the alias to be created or updated + ///The settings for the alias, such as `routing` or `filter` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func queryString = null); + + ///Represents a POST on /_alias/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///The name of the alias to be created or updated ///The settings for the alias, such as `routing` or `filter` - Task IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition - ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutMappingAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition - Task IndicesPutMappingAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutMappingAsync(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ Task> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null); + + ///Represents a PUT on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// ///The name of the document type ///The mapping definition - ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ Task> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition - Task IndicesPutMappingForAllAsync(string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition - ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_mapping - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ///Represents a POST on /{index}/{type}/_mapping + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mapping + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// ///A comma-separated list of index names the mapping should be added to (supports wildcards); use `_all` or omit to add the mapping on all indices. ///The name of the document type ///The mapping definition - Task IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutMappingPostAsync(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mapping/{type} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mapping/{type} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null); + + ///Represents a POST on /_mapping/{type} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html + /// + ///The name of the document type + ///The mapping definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ Task> IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null); + + ///Represents a PUT on /_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// - ///The name of the document type - ///The mapping definition - ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func queryString = null); + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_mapping/{type} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html
+ ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// - ///The name of the document type - ///The mapping definition - Task IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null); + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ Task> IndicesPutSettingsForAllAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null); + + ///Represents a PUT on /_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// ///The index settings to be updated - ElasticsearchResponse IndicesPutSettingsForAll(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutSettingsForAllAsync(object body, Func queryString = null); - ///PUT /_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a PUT on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The index settings to be updated - Task IndicesPutSettingsForAllAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ ///Represents a PUT on /{index}/_settings + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The index settings to be updated - ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /{index}/_settings - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html
+ Task> IndicesPutSettingsAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/_settings + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///The index settings to be updated + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutSettings(string index, object body, Func queryString = null); + + ///Represents a PUT on /{index}/_settings + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///The index settings to be updated - Task IndicesPutSettingsAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutSettingsAsync(string index, object body, Func queryString = null); + + ///Represents a PUT on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null, object deserializationState = null); - ///PUT /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a PUT on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null); + + ///Represents a PUT on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template ///The template definition - ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ Task> IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null); + + ///Represents a POST on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template ///The template definition - Task IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null, object deserializationState = null); - ///POST /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ ///Represents a POST on /_template/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template ///The template definition - ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_template/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html
+ Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_template/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html + /// + ///The name of the template + ///The template definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func queryString = null); + + ///Represents a POST on /_template/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// ///The name of the template ///The template definition - Task IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null); + + ///Represents a PUT on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null); + + ///Represents a PUT on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null); + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null); + + ///Represents a PUT on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null); - ///PUT /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); - ///PUT /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func queryString = null); + + ///Represents a PUT on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null); + + ///Represents a POST on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null, object deserializationState = null); - ///POST /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func queryString = null); + + ///Represents a POST on /_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ ///Represents a POST on /{index}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices - ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/_warmer/{name} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html
+ Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types ///The name of the warmer ///The search request definition for the warmer (query, filters, facets, sorting, etc) - Task IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
- ///
- ElasticsearchResponse IndicesRefreshForAll(Func queryString = null); + ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); - ///POST /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// - Task IndicesRefreshForAllAsync(Func queryString = null); + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_warmer/{name} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html + /// + ///A comma-separated list of index names to register the warmer for; use `_all` or omit to perform the operation on all indices + ///A comma-separated list of document types to register the warmer for; leave empty to perform the operation on all types + ///The name of the warmer + ///The search request definition for the warmer (query, filters, facets, sorting, etc) + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null); + + ///Represents a POST on /_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesRefreshForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesRefreshForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesRefreshForAll(Func queryString = null); + + ///Represents a POST on /_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesRefreshForAllAsync(Func queryString = null); + + ///Represents a POST on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesRefresh(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesRefresh(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index}/_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesRefreshAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
- ///
- ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null); + Task> IndicesRefreshAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Represents a POST on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// - Task IndicesRefreshGetForAllAsync(Func queryString = null); - - ///GET /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesRefresh(string index, Func queryString = null); + + ///Represents a POST on /{index}/_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null); - - ///GET /{index}/_refresh - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesRefreshAsync(string index, Func queryString = null); + + ///Represents a GET on /_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesRefreshGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesRefreshGetForAll(Func queryString = null); + + ///Represents a GET on /_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesRefreshGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesRefreshGetAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
- ///
- ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null); + ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null, object deserializationState = null); - ///GET /_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Represents a GET on /{index}/_refresh + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// - Task IndicesSegmentsForAllAsync(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ Task> IndicesRefreshGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_refresh + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesSegments(string index, Func queryString = null); - - ///GET /{index}/_segments - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesRefreshGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_refresh + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesSegmentsAsync(string index, Func queryString = null); - - ///POST /_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesRefreshGetAsync(string index, Func queryString = null); + + ///Represents a GET on /_segments + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_segments + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesSegmentsForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_segments + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesSegmentsForAll(Func queryString = null); + + ///Represents a GET on /_segments + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesSegmentsForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_segments + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html /// - ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ElasticsearchResponse IndicesSegments(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_segments + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html /// - Task IndicesSnapshotIndexForAllAsync(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ Task> IndicesSegmentsAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_segments + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesSegments(string index, Func queryString = null); + + ///Represents a GET on /{index}/_segments + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesSegmentsAsync(string index, Func queryString = null); + + ///Represents a POST on /_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_gateway/snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesSnapshotIndexForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesSnapshotIndexForAll(Func queryString = null); + + ///Represents a POST on /_gateway/snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesSnapshotIndexForAllAsync(Func queryString = null); + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null, object deserializationState = null); - ///POST /{index}/_gateway/snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html
+ ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html /// ///A comma-separated list of index names; use `_all` or empty string for all indices - Task IndicesSnapshotIndexAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
- ///
- ElasticsearchResponse IndicesStatsForAll(Func queryString = null); + Task> IndicesSnapshotIndexAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesSnapshotIndex(string index, Func queryString = null); + + ///Represents a POST on /{index}/_gateway/snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html + /// + ///A comma-separated list of index names; use `_all` or empty string for all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesSnapshotIndexAsync(string index, Func queryString = null); + + ///Represents a GET on /_stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesStatsForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesStatsForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStatsForAll(Func queryString = null); + + ///Represents a GET on /_stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesStatsForAllAsync(Func queryString = null); + + ///Represents a GET on /_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// - Task IndicesStatsForAllAsync(Func queryString = null); + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///Limit the information returned the specific metrics. - ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesStatsForAllAsync(string metric, Func queryString = null, object deserializationState = null); - ///GET /_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a GET on /_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///Limit the information returned the specific metrics. - Task IndicesStatsForAllAsync(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStatsForAll(string metric, Func queryString = null); + + ///Represents a GET on /_stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ Task> IndicesStatsForAllAsync(string metric, Func queryString = null); + + ///Represents a GET on /{index}/_stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesStats(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesStats(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ ///Represents a GET on /{index}/_stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesStatsAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ Task> IndicesStatsAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ///Limit the information returned the specific metrics. - ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStats(string index, Func queryString = null); + + ///Represents a GET on /{index}/_stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /{index}/_stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html
+ Task> IndicesStatsAsync(string index, Func queryString = null); + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices ///Limit the information returned the specific metrics. - Task IndicesStatsAsync(string index, string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null, object deserializationState = null); - ///GET /_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a GET on /{index}/_stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// - ElasticsearchResponse IndicesStatusForAll(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ Task> IndicesStatsAsync(string index, string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStats(string index, string metric, Func queryString = null); + + ///Represents a GET on /{index}/_stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// - Task IndicesStatusForAllAsync(Func queryString = null); + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Limit the information returned the specific metrics. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesStatsAsync(string index, string metric, Func queryString = null); + + ///Represents a GET on /_status + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesStatusForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_status + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesStatusForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_status + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStatusForAll(Func queryString = null); + + ///Represents a GET on /_status + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesStatusForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_status + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ElasticsearchResponse IndicesStatus(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_status + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesStatus(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesStatusAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_status - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html
+ ///Represents a GET on /{index}/_status + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html + /// + ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesStatus(string index, Func queryString = null); + + ///Represents a GET on /{index}/_status + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html /// ///A comma-separated list of index names; use `_all` or empty string to perform the operation on all indices - Task IndicesStatusAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ Task> IndicesStatusAsync(string index, Func queryString = null); + + ///Represents a POST on /_aliases + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///The definition of `actions` to perform - ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null, object deserializationState = null); - ///POST /_aliases - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html
+ ///Represents a POST on /_aliases + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// ///The definition of `actions` to perform - Task IndicesUpdateAliasesForAllAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ Task> IndicesUpdateAliasesForAllAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_aliases + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func queryString = null); + + ///Represents a POST on /_aliases + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html + /// + ///The definition of `actions` to perform + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesUpdateAliasesForAllAsync(object body, Func queryString = null); + + ///Represents a GET on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesValidateQueryGetForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null); + + ///Represents a GET on /_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesValidateQueryGetForAllAsync(Func queryString = null); + + ///Represents a GET on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// - ElasticsearchResponse IndicesValidateQueryGetForAll(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// - Task IndicesValidateQueryGetForAllAsync(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ Task> IndicesValidateQueryGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse IndicesValidateQueryGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesValidateQueryGetAsync(string index, Func queryString = null); - ///GET /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - Task IndicesValidateQueryGetAsync(string index, Func queryString = null); + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ Task> IndicesValidateQueryGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types - Task IndicesValidateQueryGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesValidateQueryGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///The query definition specified with the Query DSL - ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> IndicesValidateQueryForAllAsync(object body, Func queryString = null, object deserializationState = null); - ///POST /_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a POST on /_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQueryForAll(object body, Func queryString = null); + + ///Represents a POST on /_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///The query definition specified with the Query DSL - Task IndicesValidateQueryForAllAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ Task> IndicesValidateQueryForAllAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///The query definition specified with the Query DSL - ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a POST on /{index}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///The query definition specified with the Query DSL - Task IndicesValidateQueryAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ Task> IndicesValidateQueryAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The query definition specified with the Query DSL - ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQuery(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesValidateQueryAsync(string index, object body, Func queryString = null); - ///POST /{index}/{type}/_validate/query - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html
+ ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types ///The query definition specified with the Query DSL - Task IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET / - ///
http://www.elasticsearch.org/guide/
- ///
- ElasticsearchResponse Info(Func queryString = null); + ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///GET / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// - Task InfoAsync(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ Task> IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_validate/query + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to restrict the operation; leave empty to perform the operation on all types + ///The query definition specified with the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on / + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Info(Func queryString = null, object deserializationState = null); + + ///Represents a GET on / + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> InfoAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on / + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Info(Func queryString = null); + + ///Represents a GET on / + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> InfoAsync(Func queryString = null); + + ///Represents a GET on /_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MgetGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MgetGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MgetGet(Func queryString = null); + + ///Represents a GET on /_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// - ElasticsearchResponse MgetGet(Func queryString = null); + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ElasticsearchResponse MgetGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// - Task MgetGetAsync(Func queryString = null); + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ Task> MgetGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MgetGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index - ElasticsearchResponse MgetGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetGetAsync(string index, Func queryString = null); - ///GET /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a GET on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index - Task MgetGetAsync(string index, Func queryString = null); + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MgetGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a GET on /{index}/{type}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index ///The type of the document - ElasticsearchResponse MgetGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ Task> MgetGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///The type of the document + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MgetGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index ///The type of the document - Task MgetGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mget(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MgetAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mget(object body, Func queryString = null); + + ///Represents a POST on /_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mget(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ Task> MgetAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html + /// + ///The name of the index + ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mget(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// + ///The name of the index ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - ElasticsearchResponse Mget(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetAsync(string index, object body, Func queryString = null); - ///POST /_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a POST on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// + ///The name of the index + ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - Task MgetAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index + ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - ElasticsearchResponse Mget(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ Task> MgetAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index + ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - Task MgetAsync(string index, object body, Func queryString = null); - - ///POST /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mget + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// ///The name of the index ///The type of the document ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - ElasticsearchResponse Mget(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MgetAsync(string index, string type, object body, Func queryString = null); - ///POST /{index}/{type}/_mget - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html
+ ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// ///The name of the index - ///The type of the document - ///Document identifiers; can be either `docs` (containing full document information) or `ids` (when index and type is provided in the URL. - Task MgetAsync(string index, string type, object body, Func queryString = null); + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MltGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MltGet(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_mlt + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID - Task MltGetAsync(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ Task> MltGetAsync(string index, string type, string id, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID ///A specific search request definition - ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/{id}/_mlt - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html
+ ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// ///The name of the index ///The type of the document (use `_all` to fetch the first document matching the ID across all types) ///The document ID ///A specific search request definition - Task MltAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MltAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mlt(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_mlt + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html + /// + ///The name of the index + ///The type of the document (use `_all` to fetch the first document matching the ID across all types) + ///The document ID + ///A specific search request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MltAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a GET on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MpercolateGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MpercolateGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MpercolateGet(Func queryString = null); + + ///Represents a GET on /_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MpercolateGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ElasticsearchResponse MpercolateGet(Func queryString = null); + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ElasticsearchResponse MpercolateGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - Task MpercolateGetAsync(Func queryString = null); + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MpercolateGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MpercolateGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default - ElasticsearchResponse MpercolateGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MpercolateGetAsync(string index, Func queryString = null); - ///GET /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default - Task MpercolateGetAsync(string index, Func queryString = null); + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The type of the document being percolated to use as default. - ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MpercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MpercolateGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The type of the document being percolated to use as default. - Task MpercolateGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MpercolateGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mpercolate(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MpercolateAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mpercolate(object body, Func queryString = null); + + ///Represents a POST on /_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The percolate request definitions (header & body pair), separated by newlines - ElasticsearchResponse Mpercolate(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MpercolateAsync(object body, Func queryString = null); - ///POST /_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// + ///The index of the document being count percolated to use as default ///The percolate request definitions (header & body pair), separated by newlines - Task MpercolateAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The percolate request definitions (header & body pair), separated by newlines - ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MpercolateAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mpercolate(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The percolate request definitions (header & body pair), separated by newlines - Task MpercolateAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> MpercolateAsync(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The type of the document being percolated to use as default. ///The percolate request definitions (header & body pair), separated by newlines - ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_mpercolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being count percolated to use as default ///The type of the document being percolated to use as default. ///The percolate request definitions (header & body pair), separated by newlines - Task MpercolateAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MpercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mpercolate(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mpercolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being count percolated to use as default + ///The type of the document being percolated to use as default. + ///The percolate request definitions (header & body pair), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MpercolateAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on /_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MsearchGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MsearchGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MsearchGet(Func queryString = null); + + ///Represents a GET on /_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MsearchGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// - ElasticsearchResponse MsearchGet(Func queryString = null); + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ElasticsearchResponse MsearchGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// - Task MsearchGetAsync(Func queryString = null); + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MsearchGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MsearchGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default - ElasticsearchResponse MsearchGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MsearchGetAsync(string index, Func queryString = null); - ///GET /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default - Task MsearchGetAsync(string index, Func queryString = null); + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a GET on /{index}/{type}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default - ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MsearchGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MsearchGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default - Task MsearchGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MsearchGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Msearch(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MsearchAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Msearch(object body, Func queryString = null); + + ///Represents a POST on /_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///The request definitions (metadata-search request definition pairs), separated by newlines - ElasticsearchResponse Msearch(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MsearchAsync(object body, Func queryString = null); - ///POST /_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a POST on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// + ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines - Task MsearchAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Msearch(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a POST on /{index}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines - ElasticsearchResponse Msearch(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MsearchAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Msearch(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines - Task MsearchAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ Task> MsearchAsync(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines - ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_msearch - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html
+ ///Represents a POST on /{index}/{type}/_msearch + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// ///A comma-separated list of index names to use as default ///A comma-separated list of document types to use as default ///The request definitions (metadata-search request definition pairs), separated by newlines - Task MsearchAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ Task> MsearchAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Msearch(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_msearch + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html + /// + ///A comma-separated list of index names to use as default + ///A comma-separated list of document types to use as default + ///The request definitions (metadata-search request definition pairs), separated by newlines + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MsearchAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MtermvectorsGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MtermvectorsGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MtermvectorsGet(Func queryString = null); + + ///Represents a GET on /_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MtermvectorsGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// - ElasticsearchResponse MtermvectorsGet(Func queryString = null); + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// - Task MtermvectorsGetAsync(Func queryString = null); + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ Task> MtermvectorsGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. - ElasticsearchResponse MtermvectorsGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MtermvectorsGetAsync(string index, Func queryString = null); - ///GET /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. - Task MtermvectorsGetAsync(string index, Func queryString = null); + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. ///The type of the document. - ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ Task> MtermvectorsGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse MtermvectorsGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. ///The type of the document. - Task MtermvectorsGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MtermvectorsGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ElasticsearchResponse Mtermvectors(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - ElasticsearchResponse Mtermvectors(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> MtermvectorsAsync(object body, Func queryString = null, object deserializationState = null); - ///POST /_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a POST on /_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mtermvectors(object body, Func queryString = null); + + ///Represents a POST on /_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - Task MtermvectorsAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ Task> MtermvectorsAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a POST on /{index}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - Task MtermvectorsAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ Task> MtermvectorsAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. - ///The type of the document. ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mtermvectors(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MtermvectorsAsync(string index, object body, Func queryString = null); - ///POST /{index}/{type}/_mtermvectors - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html
+ ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. - Task MtermvectorsAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/nodes/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
- ///
- ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null); + ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///GET /_cluster/nodes/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// - Task NodesHotThreadsForAllAsync(Func queryString = null); + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_cluster/nodes/{node_id}/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ Task> MtermvectorsAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Mtermvectors(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_mtermvectors + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///Define ids, parameters or a list of parameters per document here. You must at least provide a list of document ids. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> MtermvectorsAsync(string index, string type, object body, Func queryString = null); + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesHotThreadsForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesHotThreadsForAll(Func queryString = null); + + ///Represents a GET on /_cluster/nodes/hotthreads + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesHotThreadsForAllAsync(Func queryString = null); + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null, object deserializationState = null); - ///GET /_cluster/nodes/{node_id}/hotthreads - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html
+ ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - Task NodesHotThreadsAsync(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
- ///
- ElasticsearchResponse NodesInfoForAll(Func queryString = null); + Task> NodesHotThreadsAsync(string node_id, Func queryString = null, object deserializationState = null); - ///GET /_nodes - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesHotThreads(string node_id, Func queryString = null); + + ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesHotThreadsAsync(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesInfoForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesInfoForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesInfoForAll(Func queryString = null); + + ///Represents a GET on /_nodes + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesInfoForAllAsync(Func queryString = null); + + ///Represents a GET on /_nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// - Task NodesInfoForAllAsync(Func queryString = null); + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ElasticsearchResponse NodesInfo(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ElasticsearchResponse NodesInfo(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesInfoAsync(string node_id, Func queryString = null, object deserializationState = null); - ///GET /_nodes/{node_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_nodes/{node_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesInfo(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - Task NodesInfoAsync(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_nodes/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ Task> NodesInfoAsync(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// ///A comma-separated list of metrics you wish returned. Leave empty to return all. - ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null, object deserializationState = null); - ///GET /_nodes/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ ///Represents a GET on /_nodes/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// ///A comma-separated list of metrics you wish returned. Leave empty to return all. - Task NodesInfoForAllAsync(string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes/{node_id}/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ Task> NodesInfoForAllAsync(string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A comma-separated list of metrics you wish returned. Leave empty to return all. - ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesInfoForAll(string metric, Func queryString = null); + + ///Represents a GET on /_nodes/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_nodes/{node_id}/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html
+ Task> NodesInfoForAllAsync(string metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///A comma-separated list of metrics you wish returned. Leave empty to return all. - Task NodesInfoAsync(string node_id, string metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null, object deserializationState = null); - ///POST /_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// - ElasticsearchResponse NodesShutdownForAll(Func queryString = null); + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ Task> NodesInfoAsync(string node_id, string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesInfo(string node_id, string metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///A comma-separated list of metrics you wish returned. Leave empty to return all. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesInfoAsync(string node_id, string metric, Func queryString = null); + + ///Represents a POST on /_shutdown + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesShutdownForAll(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_shutdown + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesShutdownForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_shutdown + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesShutdownForAll(Func queryString = null); + + ///Represents a POST on /_shutdown + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesShutdownForAllAsync(Func queryString = null); + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html /// - Task NodesShutdownForAllAsync(Func queryString = null); + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_cluster/nodes/{node_id}/_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html /// ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes - ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesShutdownAsync(string node_id, Func queryString = null, object deserializationState = null); - ///POST /_cluster/nodes/{node_id}/_shutdown - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html
+ ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html /// ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes - Task NodesShutdownAsync(string node_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesShutdown(string node_id, Func queryString = null); + + ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html + /// + ///A comma-separated list of node IDs or names to perform the operation on; use `_local` to perform the operation on the node you're connected to, leave empty to perform the operation on all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesShutdownAsync(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesStatsForAll(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesStatsForAllAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStatsForAll(Func queryString = null); + + ///Represents a GET on /_nodes/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesStatsForAllAsync(Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesStats(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ Task> NodesStatsAsync(string node_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStats(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesStatsAsync(string node_id, Func queryString = null); + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesStatsForAllAsync(string metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null); + + ///Represents a GET on /_nodes/stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// - ElasticsearchResponse NodesStatsForAll(Func queryString = null); + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_nodes/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ Task> NodesStatsForAllAsync(string metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// - Task NodesStatsForAllAsync(Func queryString = null); + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null, object deserializationState = null); - ///GET /_nodes/{node_id}/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ElasticsearchResponse NodesStats(string node_id, Func queryString = null); + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesStatsAsync(string node_id, string metric, Func queryString = null, object deserializationState = null); - ///GET /_nodes/{node_id}/stats - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - Task NodesStatsAsync(string node_id, Func queryString = null); + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesStatsAsync(string node_id, string metric, Func queryString = null); + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null, object deserializationState = null); - ///GET /_nodes/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///Limit the information returned to the specified metrics - ElasticsearchResponse NodesStatsForAll(string metric, Func queryString = null); + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null, object deserializationState = null); - ///GET /_nodes/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///Limit the information returned to the specified metrics - Task NodesStatsForAllAsync(string metric, Func queryString = null); + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null); + + ///Represents a GET on /_nodes/stats/{metric}/{index_metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_nodes/{node_id}/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ Task> NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics - ElasticsearchResponse NodesStats(string node_id, string metric, Func queryString = null); + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes/{node_id}/stats/{metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics - Task NodesStatsAsync(string node_id, string metric, Func queryString = null); + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_nodes/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html + /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes + ///Limit the information returned to the specified metrics + ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null); + + ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// + ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes ///Limit the information returned to the specified metrics ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /_nodes/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/{type}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> PercolateGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - Task NodesStatsForAllAsync(string metric, string index_metric, Func queryString = null); + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_nodes/{node_id}/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
- ///
- ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func queryString = null); + Task> PercolateGetAsync(string index, string type, Func queryString = null); - ///GET /_nodes/{node_id}/stats/{metric}/{index_metric} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html
+ ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ///A comma-separated list of node IDs or names to limit the returned information; use `_local` to return information from the node you're connecting to, leave empty to get information from all nodes - ///Limit the information returned to the specified metrics - ///Limit the information returned for `indices` metric to the specific index metrics. Isn't used if `indices` (or `all`) metric isn't specified. - Task NodesStatsAsync(string node_id, string metric, string index_metric, Func queryString = null); + ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. - ElasticsearchResponse PercolateGet(string index, string type, Func queryString = null); + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> PercolateGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. - Task PercolateGetAsync(string index, string type, Func queryString = null); - - ///GET /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - ElasticsearchResponse PercolateGet(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> PercolateGetAsync(string index, string type, string id, Func queryString = null); - ///GET /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. - ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. - Task PercolateGetAsync(string index, string type, string id, Func queryString = null); + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. ///The percolator request definition using the percolate DSL - ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> PercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. ///The percolator request definition using the percolate DSL - Task PercolateAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Percolate(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html + /// + ///The index of the document being percolated. + ///The type of the document being percolated. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ Task> PercolateAsync(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. ///The percolator request definition using the percolate DSL - ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/{id}/_percolate - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html
+ ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// ///The index of the document being percolated. ///The type of the document being percolated. ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. ///The percolator request definition using the percolate DSL - Task PercolateAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///HEAD / - ///
http://www.elasticsearch.org/guide/
- ///
- ElasticsearchResponse Ping(Func queryString = null); + Task> PercolateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///HEAD / - ///
http://www.elasticsearch.org/guide/
+ ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - Task PingAsync(Func queryString = null); - - ///GET /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Percolate(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_percolate + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// - ElasticsearchResponse ScrollGet(Func queryString = null); - - ///GET /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///The index of the document being percolated. + ///The type of the document being percolated. + ///Substitute the document in the request body with a document that is known by the specified id. On top of the id, the index and type parameter will be used to retrieve the document from within the cluster. + ///The percolator request definition using the percolate DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> PercolateAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Ping(Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on / + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> PingAsync(Func queryString = null, object deserializationState = null); + + ///Represents a HEAD on / + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Ping(Func queryString = null); + + ///Represents a HEAD on / + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/ + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> PingAsync(Func queryString = null); + + ///Represents a GET on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse ScrollGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_search/scroll + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ScrollGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ScrollGet(Func queryString = null); + + ///Represents a GET on /_search/scroll + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ScrollGetAsync(Func queryString = null); + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - Task ScrollGetAsync(Func queryString = null); + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID - ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ScrollGetAsync(string scroll_id, Func queryString = null, object deserializationState = null); - ///GET /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID - Task ScrollGetAsync(string scroll_id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse ScrollGet(string scroll_id, Func queryString = null); + + ///Represents a GET on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ScrollGetAsync(string scroll_id, Func queryString = null); + + ///Represents a POST on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ElasticsearchResponse Scroll(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_search/scroll + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID if not passed by URL or query parameter. - ElasticsearchResponse Scroll(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> ScrollAsync(object body, Func queryString = null, object deserializationState = null); - ///POST /_search/scroll - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a POST on /_search/scroll + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID if not passed by URL or query parameter. - Task ScrollAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Scroll(object body, Func queryString = null); + + ///Represents a POST on /_search/scroll + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ Task> ScrollAsync(object body, Func queryString = null); + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID ///The scroll ID if not passed by URL or query parameter. - ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null, object deserializationState = null); - ///POST /_search/scroll/{scroll_id} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html
+ ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///The scroll ID ///The scroll ID if not passed by URL or query parameter. - Task ScrollAsync(string scroll_id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> ScrollAsync(string scroll_id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html + /// + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Scroll(string scroll_id, object body, Func queryString = null); + + ///Represents a POST on /_search/scroll/{scroll_id} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// - ElasticsearchResponse SearchGet(Func queryString = null); + ///The scroll ID + ///The scroll ID if not passed by URL or query parameter. + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> ScrollAsync(string scroll_id, object body, Func queryString = null); + + ///Represents a GET on /_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SearchGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SearchGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SearchGet(Func queryString = null); + + ///Represents a GET on /_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SearchGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ElasticsearchResponse SearchGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - Task SearchGetAsync(Func queryString = null); + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SearchGetAsync(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SearchGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse SearchGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SearchGetAsync(string index, Func queryString = null); - ///GET /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices - Task SearchGetAsync(string index, Func queryString = null); + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SearchGet(string index, string type, Func queryString = null, object deserializationState = null); - ///GET /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/{type}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types - ElasticsearchResponse SearchGet(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SearchGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SearchGet(string index, string type, Func queryString = null); + + ///Represents a GET on /{index}/{type}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types - Task SearchGetAsync(string index, string type, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SearchGetAsync(string index, string type, Func queryString = null); + + ///Represents a POST on /_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ElasticsearchResponse Search(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SearchAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Search(object body, Func queryString = null); + + ///Represents a POST on /_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SearchAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///The search definition using the Query DSL - ElasticsearchResponse Search(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ElasticsearchResponse Search(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///The search definition using the Query DSL - Task SearchAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SearchAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Search(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///The search definition using the Query DSL - ElasticsearchResponse Search(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SearchAsync(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///The search definition using the Query DSL - Task SearchAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ElasticsearchResponse Search(string index, string type, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/_search + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///The search definition using the Query DSL - ElasticsearchResponse Search(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SearchAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/_search - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a POST on /{index}/{type}/_search + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices + ///A comma-separated list of document types to search; leave empty to perform the operation on all types + ///The search definition using the Query DSL + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Search(string index, string type, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/_search + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to search; use `_all` or empty string to perform the operation on all indices ///A comma-separated list of document types to search; leave empty to perform the operation on all types ///The search definition using the Query DSL - Task SearchAsync(string index, string type, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SearchAsync(string index, string type, object body, Func queryString = null); + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///PUT /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null); + + ///Represents a PUT on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///The snapshot definition - ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null); - ///PUT /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///The snapshot definition - Task SnapshotCreateAsync(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///The snapshot definition - ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); - ///POST /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///The snapshot definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null); + + ///Represents a POST on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///The snapshot definition - Task SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func queryString = null); + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null, object deserializationState = null); - ///PUT /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a PUT on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null, object deserializationState = null); + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null); + + ///Represents a PUT on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///The repository definition - ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///PUT /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ Task> SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null); + + ///Represents a POST on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///The repository definition - Task SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null, object deserializationState = null); - ///POST /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///The repository definition - ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///The repository definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func queryString = null); + + ///Represents a POST on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///The repository definition - Task SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null); + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null, object deserializationState = null); - ///DELETE /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name - ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///DELETE /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ Task> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func queryString = null); + + ///Represents a DELETE on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name - Task SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///DELETE /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ Task> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null); + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null, object deserializationState = null); + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A comma-separated list of repository names - ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotDeleteRepositoryAsync(string repository, Func queryString = null, object deserializationState = null); - ///DELETE /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a DELETE on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotDeleteRepository(string repository, Func queryString = null); + + ///Represents a DELETE on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A comma-separated list of repository names - Task SnapshotDeleteRepositoryAsync(string repository, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///GET /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ Task> SnapshotDeleteRepositoryAsync(string repository, Func queryString = null); + + ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A comma-separated list of snapshot names - ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null, object deserializationState = null); - ///GET /_snapshot/{repository}/{snapshot} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A comma-separated list of snapshot names - Task SnapshotGetAsync(string repository, string snapshot, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
- ///
- ElasticsearchResponse SnapshotGetRepository(Func queryString = null); + Task> SnapshotGetAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null); - ///GET /_snapshot - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func queryString = null); + + ///Represents a GET on /_snapshot/{repository}/{snapshot} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A comma-separated list of snapshot names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotGetAsync(string repository, string snapshot, Func queryString = null); + + ///Represents a GET on /_snapshot + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SnapshotGetRepository(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_snapshot + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotGetRepositoryAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_snapshot + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotGetRepository(Func queryString = null); + + ///Represents a GET on /_snapshot + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotGetRepositoryAsync(Func queryString = null); + + ///Represents a GET on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// - Task SnapshotGetRepositoryAsync(Func queryString = null); + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_snapshot/{repository} + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A comma-separated list of repository names - ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotGetRepositoryAsync(string repository, Func queryString = null, object deserializationState = null); - ///GET /_snapshot/{repository} - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a GET on /_snapshot/{repository} + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A comma-separated list of repository names - Task SnapshotGetRepositoryAsync(string repository, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotGetRepository(string repository, Func queryString = null); + + ///Represents a GET on /_snapshot/{repository} + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A comma-separated list of repository names + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SnapshotGetRepositoryAsync(string repository, Func queryString = null); + + ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /_snapshot/{repository}/{snapshot}/_restore - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///Details of what to restore - ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); - ///POST /_snapshot/{repository}/{snapshot}/_restore - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html
+ ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html + /// + ///A repository name + ///A snapshot name + ///Details of what to restore + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func queryString = null); + + ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// ///A repository name ///A snapshot name ///Details of what to restore - Task SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null); + + ///Represents a POST on /_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///The request definition - ElasticsearchResponse Suggest(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Suggest(object body, Func queryString = null, object deserializationState = null); - ///POST /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a POST on /_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///The request definition - Task SuggestAsync(object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SuggestAsync(object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Suggest(object body, Func queryString = null); + + ///Represents a POST on /_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///The request definition - ElasticsearchResponse Suggest(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// - ///POST /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SuggestAsync(object body, Func queryString = null); + + ///Represents a POST on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices ///The request definition - Task SuggestAsync(string index, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Suggest(string index, object body, Func queryString = null, object deserializationState = null); - ///GET /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a POST on /{index}/_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - ElasticsearchResponse SuggestGet(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ Task> SuggestAsync(string index, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Suggest(string index, object body, Func queryString = null); + + ///Represents a POST on /{index}/_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// - Task SuggestGetAsync(Func queryString = null); + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///The request definition + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SuggestAsync(string index, object body, Func queryString = null); + + ///Represents a GET on /_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse SuggestGet(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SuggestGetAsync(Func queryString = null, object deserializationState = null); + + ///Represents a GET on /_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SuggestGet(Func queryString = null); + + ///Represents a GET on /_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SuggestGetAsync(Func queryString = null); + + ///Represents a GET on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ElasticsearchResponse SuggestGet(string index, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/_suggest + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - ElasticsearchResponse SuggestGet(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + Task> SuggestGetAsync(string index, Func queryString = null, object deserializationState = null); - ///GET /{index}/_suggest - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html
+ ///Represents a GET on /{index}/_suggest + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html + /// + ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse SuggestGet(string index, Func queryString = null); + + ///Represents a GET on /{index}/_suggest + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// ///A comma-separated list of index names to restrict the operation; use `_all` or empty string to perform the operation on all indices - Task SuggestGetAsync(string index, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> SuggestGetAsync(string index, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///GET /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ Task> TermvectorGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + + ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null); + + ///Represents a GET on /{index}/{type}/{id}/_termvector + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. - ElasticsearchResponse TermvectorGet(string index, string type, string id, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> TermvectorGetAsync(string index, string type, string id, Func queryString = null); - ///GET /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. - Task TermvectorGetAsync(string index, string type, string id, Func queryString = null); + ///Define parameters. See documentation. + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. ///Define parameters. See documentation. - ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/{id}/_termvector - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html
+ Task> TermvectorAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html + /// + ///The index in which the document resides. + ///The type of the document. + ///The id of the document. + ///Define parameters. See documentation. + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Termvector(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_termvector + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// ///The index in which the document resides. ///The type of the document. ///The id of the document. ///Define parameters. See documentation. - Task TermvectorAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> TermvectorAsync(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html + /// + ///The name of the index + ///The type of the document + ///Document ID + ///The request definition using either `script` or partial `doc` + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// + + ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); - ///POST /{index}/{type}/{id}/_update - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html
+ ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html /// ///The name of the index ///The type of the document ///Document ID ///The request definition using either `script` or partial `doc` - ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. +///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// - If T is of type byte[] deserialization will be shortcircuited + /// - If T is of type VoidResponse the response stream will be ignored completely + /// - ///POST /{index}/{type}/{id}/_update - ///
http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html
+ Task> UpdateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + + ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html + /// + ///The name of the index + ///The type of the document + ///Document ID + ///The request definition using either `script` or partial `doc` + ///Optional function to specify any additional querystring parameters for the request. + ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + ElasticsearchResponse Update(string index, string type, string id, object body, Func queryString = null); + + ///Represents a POST on /{index}/{type}/{id}/_update + ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html /// ///The name of the index ///The type of the document ///Document ID ///The request definition using either `script` or partial `doc` - Task UpdateAsync(string index, string type, string id, object body, Func queryString = null); + ///Optional function to specify any additional querystring parameters for the request. + ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary + /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely + /// - i.e result.Response.hits.hits[0].property.nested["nested_deeper"] + /// - can be safely dispatched to a nullable type even if intermediate properties do not exist + /// + + Task> UpdateAsync(string index, string type, string id, object body, Func queryString = null); } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Properties/InternalsVisibleTo.cs b/src/Elasticsearch.Net/Properties/InternalsVisibleTo.cs index eaed54829ca..90dd55215a9 100644 --- a/src/Elasticsearch.Net/Properties/InternalsVisibleTo.cs +++ b/src/Elasticsearch.Net/Properties/InternalsVisibleTo.cs @@ -16,7 +16,7 @@ [assembly: InternalsVisibleTo("Nest")] [assembly: InternalsVisibleTo("Nest.Tests.Unit")] [assembly: InternalsVisibleTo("Nest.Tests.Integration")] -[assembly: InternalsVisibleTo("Nest.Connection.Thrift")] +[assembly: InternalsVisibleTo("Elasticsearch.Net.Connection.Thrift")] [assembly: InternalsVisibleTo("ProtocolLoadTest")] diff --git a/src/Elasticsearch.Net/Providers/Sniffer.cs b/src/Elasticsearch.Net/Providers/Sniffer.cs index 61fdb34fe94..00407b30f1e 100644 --- a/src/Elasticsearch.Net/Providers/Sniffer.cs +++ b/src/Elasticsearch.Net/Providers/Sniffer.cs @@ -29,14 +29,11 @@ private static Uri Parse(string scheme, string inetString) return new Uri("{0}://{1}:{2}".F(scheme, host, port)); } - public static IList FromStream(Stream stream, IElasticsearchSerializer serializer) + public static IList FromStream(IElasticsearchResponse response, Stream stream, IElasticsearchSerializer serializer) { - using (var memoryStream = new MemoryStream()) - { - stream.CopyTo(memoryStream); - var response = serializer.Deserialize(memoryStream.ToArray()); + var result = serializer.Deserialize(response, stream, null); var l = new List(); - foreach(var kv in response.nodes.Values) + foreach(var kv in result.nodes.Values) { if (!kv.http_address.IsNullOrEmpty()) l.Add(Parse("http", kv.http_address)); @@ -46,7 +43,6 @@ public static IList FromStream(Stream stream, IElasticsearchSerializer seri l.Add(Parse("http", kv.thrift_address)); } return l; - } } } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs b/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs index 42fcabb5be0..03192c8cd5e 100644 --- a/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs +++ b/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs @@ -1,4 +1,9 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.IO; using System.Linq; +using System.Threading.Tasks; namespace Elasticsearch.Net.Serialization { @@ -8,6 +13,89 @@ public T Deserialize(byte[] bytes) where T : class { return SimpleJson.DeserializeObject(bytes.Utf8String()); } + public T Deserialize(IElasticsearchResponse response, Stream stream, object deserializeState) + { + var ms = stream as MemoryStream; + //if (ms != null) + // return SimpleJson.DeserializeObject(ms.GetBuffer().Utf8String()); + + using (ms = new MemoryStream()) + { + stream.CopyTo(ms); + byte[] buffer = ms.ToArray(); + if (buffer.Length == 0) + return default(T); + return SimpleJson.DeserializeObject(buffer.Utf8String()); + } + } + public Task DeserializeAsync(IElasticsearchResponse response, Stream stream, object deserializeState) + { + var tcs = new TaskCompletionSource(); + T r; + var ms = stream as MemoryStream; + if (ms != null) + { + r = SimpleJson.DeserializeObject(ms.GetBuffer().Utf8String()); + tcs.SetResult(r); + return tcs.Task; + } + using (ms = new MemoryStream()) + { + // return a task that reads the stream asynchronously + // and finally deserializes the result to T. + this.Iterate(ReadStreamAsync(stream, tcs), tcs); + return tcs.Task; + + } + + } + + public IEnumerable ReadStreamAsync(Stream stream, TaskCompletionSource tcs) + { + using (var ms = new MemoryStream()) + { + // Copy all data from the response stream + var buffer = new byte[BUFFER_SIZE]; + while (stream != null) + { + var read = Task.Factory.FromAsync(stream.BeginRead, stream.EndRead, buffer, 0, BUFFER_SIZE, null); + yield return read; + if (read.Result == 0) break; + ms.Write(buffer, 0, read.Result); + } + var r = SimpleJson.DeserializeObject(ms.ToArray().Utf8String()); + tcs.SetResult(r); + } + } + + const int BUFFER_SIZE = 1024; + + public void Iterate(IEnumerable asyncIterator, TaskCompletionSource tcs) + { + var enumerator = asyncIterator.GetEnumerator(); + Action recursiveBody = null; + recursiveBody = completedTask => + { + if (completedTask != null && completedTask.IsFaulted) + { + //none of the individual steps in _AsyncSteps run in parallel for 1 request + //as this would be impossible we can assume Aggregate Exception.InnerException + var exception = completedTask.Exception.InnerException; + tcs.TrySetException(exception); + enumerator.Dispose(); + } + else if (enumerator.MoveNext()) + { + //enumerator.Current.ContinueWith(recursiveBody, TaskContinuationOptions.ExecuteSynchronously); + enumerator.Current.ContinueWith(recursiveBody); + } + else + { + enumerator.Dispose(); + } + }; + recursiveBody(null); + } public byte[] Serialize(object data, SerializationFormatting formatting = SerializationFormatting.Indented) { diff --git a/src/Elasticsearch.Net/Serialization/IElasticsearchSerializer.cs b/src/Elasticsearch.Net/Serialization/IElasticsearchSerializer.cs index 60db8eece8a..bd850d63699 100644 --- a/src/Elasticsearch.Net/Serialization/IElasticsearchSerializer.cs +++ b/src/Elasticsearch.Net/Serialization/IElasticsearchSerializer.cs @@ -1,11 +1,14 @@ using System; +using System.IO; using System.Linq; +using System.Threading.Tasks; namespace Elasticsearch.Net.Serialization { public interface IElasticsearchSerializer { - T Deserialize(byte[] bytes) where T : class; + T Deserialize(IElasticsearchResponse response, Stream stream, object deserializeState); + Task DeserializeAsync(IElasticsearchResponse reponse, Stream stream, object deserializeState); byte[] Serialize(object data, SerializationFormatting formatting = SerializationFormatting.Indented); } } \ No newline at end of file diff --git a/src/Elasticsearch.sln b/src/Elasticsearch.sln index 5de662854b1..1543e6c1f2c 100644 --- a/src/Elasticsearch.sln +++ b/src/Elasticsearch.sln @@ -51,11 +51,9 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Serialization", "Serializat EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticsearch.Net.JsonNet", "Serialization\Elasticsearch.Net.JsonNET\Elasticsearch.Net.JsonNet.csproj", "{DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticsearch.Net.ServiceStackText", "Serialization\Elasticsearch.Net.ServiceStackText\Elasticsearch.Net.ServiceStackText.csproj", "{8052DC47-3281-4209-B0D2-45555AE30A46}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticsearch.Net.Connection.HttpClient", "Connections\Elasticsearch.Net.Connection.HttpClient\Elasticsearch.Net.Connection.HttpClient.csproj", "{A69322FD-B874-44EF-ABE0-63F4A7B5593E}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticsearch.Net.Tests.Unit", "Elasticsearch.Net.Tests.Unit\Elasticsearch.Net.Tests.Unit.csproj", "{C54FFD67-C452-4DC4-A47A-663ECA98A38F}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Elasticsearch.Net.Tests.Unit", "Tests\Elasticsearch.Net.Tests.Unit\Elasticsearch.Net.Tests.Unit.csproj", "{C54FFD67-C452-4DC4-A47A-663ECA98A38F}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -268,7 +266,6 @@ Global {E97CCF40-0BA6-43FE-9F2D-58D454134088}.CodeGeneration|Any CPU.ActiveCfg = Release|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.CodeGeneration|Any CPU.Build.0 = Release|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.CodeGeneration|Mixed Platforms.ActiveCfg = Release|Any CPU - {E97CCF40-0BA6-43FE-9F2D-58D454134088}.CodeGeneration|Mixed Platforms.Build.0 = Release|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.CodeGeneration|x86.ActiveCfg = Release|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.Debug - Generator|Any CPU.ActiveCfg = Debug|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.Debug - Generator|Any CPU.Build.0 = Debug|Any CPU @@ -288,7 +285,6 @@ Global {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.CodeGeneration|Any CPU.ActiveCfg = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.CodeGeneration|Any CPU.Build.0 = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.CodeGeneration|Mixed Platforms.ActiveCfg = Release|Any CPU - {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.CodeGeneration|Mixed Platforms.Build.0 = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.CodeGeneration|x86.ActiveCfg = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.Debug - Generator|Any CPU.ActiveCfg = Debug|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.Debug - Generator|Any CPU.Build.0 = Debug|Any CPU @@ -305,30 +301,9 @@ Global {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.Release|Mixed Platforms.Build.0 = Release|Any CPU {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8}.Release|x86.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.CodeGeneration|Any CPU.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.CodeGeneration|Any CPU.Build.0 = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.CodeGeneration|Mixed Platforms.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.CodeGeneration|Mixed Platforms.Build.0 = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.CodeGeneration|x86.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug - Generator|Any CPU.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug - Generator|Any CPU.Build.0 = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug - Generator|Mixed Platforms.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug - Generator|Mixed Platforms.Build.0 = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug - Generator|x86.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Debug|x86.ActiveCfg = Debug|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Release|Any CPU.Build.0 = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Release|Mixed Platforms.Build.0 = Release|Any CPU - {8052DC47-3281-4209-B0D2-45555AE30A46}.Release|x86.ActiveCfg = Release|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.CodeGeneration|Any CPU.ActiveCfg = Release|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.CodeGeneration|Any CPU.Build.0 = Release|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.CodeGeneration|Mixed Platforms.ActiveCfg = Release|Any CPU - {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.CodeGeneration|Mixed Platforms.Build.0 = Release|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.CodeGeneration|x86.ActiveCfg = Release|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.Debug - Generator|Any CPU.ActiveCfg = Debug|Any CPU {A69322FD-B874-44EF-ABE0-63F4A7B5593E}.Debug - Generator|Any CPU.Build.0 = Debug|Any CPU @@ -348,7 +323,6 @@ Global {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.CodeGeneration|Any CPU.ActiveCfg = Release|Any CPU {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.CodeGeneration|Any CPU.Build.0 = Release|Any CPU {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.CodeGeneration|Mixed Platforms.ActiveCfg = Release|Any CPU - {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.CodeGeneration|Mixed Platforms.Build.0 = Release|Any CPU {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.CodeGeneration|x86.ActiveCfg = Release|Any CPU {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.Debug - Generator|Any CPU.ActiveCfg = Debug|Any CPU {C54FFD67-C452-4DC4-A47A-663ECA98A38F}.Debug - Generator|Any CPU.Build.0 = Debug|Any CPU @@ -382,6 +356,5 @@ Global {56A87048-9065-459B-826D-3DF68B409845} = {93331BEE-0AA0-47B7-B1D2-BD5BD31634D1} {04F53AA5-6346-4139-94CF-81BD8663875F} = {93331BEE-0AA0-47B7-B1D2-BD5BD31634D1} {DD71352D-0EB2-4A02-8AC4-82A17E2A71A8} = {90F48CF5-BB0B-484D-85E7-18FE3ECA3825} - {8052DC47-3281-4209-B0D2-45555AE30A46} = {90F48CF5-BB0B-484D-85E7-18FE3ECA3825} EndGlobalSection EndGlobal diff --git a/src/Nest/DSL/Search/SourceDescriptor.cs b/src/Nest/DSL/Search/SourceDescriptor.cs index e8794992e8c..5abf744a722 100644 --- a/src/Nest/DSL/Search/SourceDescriptor.cs +++ b/src/Nest/DSL/Search/SourceDescriptor.cs @@ -8,7 +8,7 @@ namespace Nest.DSL.Search { - public class SourceDescriptor where T : class + public class SearchSourceDescriptor where T : class { [JsonProperty("include")] internal IEnumerable _Include { get; set; } @@ -16,32 +16,32 @@ public class SourceDescriptor where T : class [JsonProperty("exclude")] internal IEnumerable _Exclude { get; set; } - public SourceDescriptor Include(params string[] fields) + public SearchSourceDescriptor Include(params string[] fields) { this._Include = fields.Select(f => (PropertyPathMarker) f).ToList(); return this; } - public SourceDescriptor Include(params Expression>[] fields) + public SearchSourceDescriptor Include(params Expression>[] fields) { this._Include = fields.Select(f => (PropertyPathMarker) f).ToList(); return this; } - public SourceDescriptor Include(Func, FluentFieldList> fields) + public SearchSourceDescriptor Include(Func, FluentFieldList> fields) { this._Include = fields(new FluentFieldList()).ToList(); return this; } - public SourceDescriptor Exclude(params string[] fields) + public SearchSourceDescriptor Exclude(params string[] fields) { this._Exclude = fields.Select(f => (PropertyPathMarker) f).ToList(); return this; } - public SourceDescriptor Exclude(params Expression>[] fields) + public SearchSourceDescriptor Exclude(params Expression>[] fields) { this._Exclude = fields.Select(f => (PropertyPathMarker) f).ToList(); return this; } - public SourceDescriptor Exclude(Func, FluentFieldList> fields) + public SearchSourceDescriptor Exclude(Func, FluentFieldList> fields) { this._Exclude = fields(new FluentFieldList()).ToList(); return this; diff --git a/src/Nest/DSL/SearchDescriptor.cs b/src/Nest/DSL/SearchDescriptor.cs index 82cdf46ee66..b82868edc63 100644 --- a/src/Nest/DSL/SearchDescriptor.cs +++ b/src/Nest/DSL/SearchDescriptor.cs @@ -305,9 +305,9 @@ public SearchDescriptor Source(bool include = true) return this; } - public SearchDescriptor Source(Func, SourceDescriptor> sourceSelector) + public SearchDescriptor Source(Func, SearchSourceDescriptor> sourceSelector) { - this._Source = sourceSelector(new SourceDescriptor()); + this._Source = sourceSelector(new SearchSourceDescriptor()); return this; } /// diff --git a/src/Nest/DSL/SourceDescriptor.cs b/src/Nest/DSL/SourceDescriptor.cs new file mode 100644 index 00000000000..f91a226996f --- /dev/null +++ b/src/Nest/DSL/SourceDescriptor.cs @@ -0,0 +1,39 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Elasticsearch.Net; +using Newtonsoft.Json; +using System.Linq.Expressions; +using Nest.Resolvers; +using Nest.Domain; + +namespace Nest +{ + [DescriptorFor("GetSource")] + public partial class SourceDescriptor : DocumentPathDescriptorBase,T, SourceQueryString> + , IPathInfo + where T : class + { + + public SourceDescriptor ExecuteOnPrimary() + { + return this.Preference("_primary"); + } + + public SourceDescriptor ExecuteOnLocalShard() + { + return this.Preference("_local"); + } + + + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + { + var pathInfo = this.ToPathInfo(settings, this._QueryString); + pathInfo.HttpMethod = PathInfoHttpMethod.GET; + + return pathInfo; + + } + } +} diff --git a/src/Nest/DSL/_Descriptors.generated.cs b/src/Nest/DSL/_Descriptors.generated.cs index 7eec8941aff..0b94ec8955b 100644 --- a/src/Nest/DSL/_Descriptors.generated.cs +++ b/src/Nest/DSL/_Descriptors.generated.cs @@ -1545,6 +1545,17 @@ public ExplainDescriptor SourceExclude(params string[] _source_exclude) return this; } + + ///A list of fields to exclude from the returned _source field + public ExplainDescriptor SourceExclude(params Expression>[] typedPathLookups) where T : class + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceExclude(typedPathLookups); + return this; + } + ///A list of fields to extract and return from the _source field public ExplainDescriptor SourceInclude(params string[] _source_include) @@ -1553,6 +1564,17 @@ public ExplainDescriptor SourceInclude(params string[] _source_include) return this; } + + ///A list of fields to extract and return from the _source field + public ExplainDescriptor SourceInclude(params Expression>[] typedPathLookups) where T : class + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceInclude(typedPathLookups); + return this; + } + } @@ -1641,6 +1663,17 @@ public GetDescriptor SourceExclude(params string[] _source_exclude) return this; } + + ///A list of fields to exclude from the returned _source field + public GetDescriptor SourceExclude(params Expression>[] typedPathLookups) + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceExclude(typedPathLookups); + return this; + } + ///A list of fields to extract and return from the _source field public GetDescriptor SourceInclude(params string[] _source_include) @@ -1649,6 +1682,17 @@ public GetDescriptor SourceInclude(params string[] _source_include) return this; } + + ///A list of fields to extract and return from the _source field + public GetDescriptor SourceInclude(params Expression>[] typedPathLookups) + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceInclude(typedPathLookups); + return this; + } + ///Explicit version number for concurrency control public GetDescriptor Version(int version) @@ -1674,13 +1718,13 @@ public GetDescriptor VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// /// - public partial class GetSourceDescriptor + public partial class SourceDescriptor { - internal GetSourceQueryString _QueryString = new GetSourceQueryString(); + internal SourceQueryString _QueryString = new SourceQueryString(); ///The ID of the parent document - public GetSourceDescriptor Parent(string parent) + public SourceDescriptor Parent(string parent) { this._QueryString.Parent(parent); return this; @@ -1688,7 +1732,7 @@ public GetSourceDescriptor Parent(string parent) ///Specify the node or shard the operation should be performed on (default: random) - public GetSourceDescriptor Preference(string preference) + public SourceDescriptor Preference(string preference) { this._QueryString.Preference(preference); return this; @@ -1696,7 +1740,7 @@ public GetSourceDescriptor Preference(string preference) ///Specify whether to perform the operation in realtime or search mode - public GetSourceDescriptor Realtime(bool realtime = true) + public SourceDescriptor Realtime(bool realtime = true) { this._QueryString.Realtime(realtime); return this; @@ -1704,7 +1748,7 @@ public GetSourceDescriptor Realtime(bool realtime = true) ///Refresh the shard containing the document before performing the operation - public GetSourceDescriptor Refresh(bool refresh = true) + public SourceDescriptor Refresh(bool refresh = true) { this._QueryString.Refresh(refresh); return this; @@ -1712,7 +1756,7 @@ public GetSourceDescriptor Refresh(bool refresh = true) ///Specific routing value - public GetSourceDescriptor Routing(string routing) + public SourceDescriptor Routing(string routing) { this._QueryString.Routing(routing); return this; @@ -1720,7 +1764,7 @@ public GetSourceDescriptor Routing(string routing) ///True or false to return the _source field or not, or a list of fields to return - public GetSourceDescriptor Source(params string[] _source) + public SourceDescriptor Source(params string[] _source) { this._QueryString.Source(_source); return this; @@ -1728,23 +1772,45 @@ public GetSourceDescriptor Source(params string[] _source) ///A list of fields to exclude from the returned _source field - public GetSourceDescriptor SourceExclude(params string[] _source_exclude) + public SourceDescriptor SourceExclude(params string[] _source_exclude) { this._QueryString.SourceExclude(_source_exclude); return this; } + + ///A list of fields to exclude from the returned _source field + public SourceDescriptor SourceExclude(params Expression>[] typedPathLookups) + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceExclude(typedPathLookups); + return this; + } + ///A list of fields to extract and return from the _source field - public GetSourceDescriptor SourceInclude(params string[] _source_include) + public SourceDescriptor SourceInclude(params string[] _source_include) { this._QueryString.SourceInclude(_source_include); return this; } + + ///A list of fields to extract and return from the _source field + public SourceDescriptor SourceInclude(params Expression>[] typedPathLookups) + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceInclude(typedPathLookups); + return this; + } + ///Explicit version number for concurrency control - public GetSourceDescriptor Version(int version) + public SourceDescriptor Version(int version) { this._QueryString.Version(version); return this; @@ -1752,7 +1818,7 @@ public GetSourceDescriptor Version(int version) ///Specific version type - public GetSourceDescriptor VersionType(VersionTypeOptions version_type) + public SourceDescriptor VersionType(VersionTypeOptions version_type) { this._QueryString.VersionType(version_type); return this; @@ -3644,6 +3710,17 @@ public MultiGetDescriptor SourceExclude(params string[] _source_exclude) return this; } + + ///A list of fields to exclude from the returned _source field + public MultiGetDescriptor SourceExclude(params Expression>[] typedPathLookups) where T : class + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceExclude(typedPathLookups); + return this; + } + ///A list of fields to extract and return from the _source field public MultiGetDescriptor SourceInclude(params string[] _source_include) @@ -3652,6 +3729,17 @@ public MultiGetDescriptor SourceInclude(params string[] _source_include) return this; } + + ///A list of fields to extract and return from the _source field + public MultiGetDescriptor SourceInclude(params Expression>[] typedPathLookups) where T : class + { + if (!typedPathLookups.HasAny()) + return this; + + this._QueryString._SourceInclude(typedPathLookups); + return this; + } + } diff --git a/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs b/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs index 4abd9b62078..9f5ea8cfa4a 100644 --- a/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs +++ b/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs @@ -28,6 +28,30 @@ internal static ExplainQueryString _Fields( } + ///A list of fields to exclude from the returned _source field + internal static ExplainQueryString _SourceExclude( + this ExplainQueryString qs, + IEnumerable>> _source_exclude) + where T : class + { + qs.__source_exclude = _source_exclude.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_exclude", qs.__source_exclude); + return qs; + } + + + ///A list of fields to extract and return from the _source field + internal static ExplainQueryString _SourceInclude( + this ExplainQueryString qs, + IEnumerable>> _source_include) + where T : class + { + qs.__source_include = _source_include.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_include", qs.__source_include); + return qs; + } + + ///A comma-separated list of fields to return in the response internal static GetQueryString _Fields( this GetQueryString qs, @@ -40,6 +64,54 @@ internal static GetQueryString _Fields( } + ///A list of fields to exclude from the returned _source field + internal static GetQueryString _SourceExclude( + this GetQueryString qs, + IEnumerable>> _source_exclude) + where T : class + { + qs.__source_exclude = _source_exclude.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_exclude", qs.__source_exclude); + return qs; + } + + + ///A list of fields to extract and return from the _source field + internal static GetQueryString _SourceInclude( + this GetQueryString qs, + IEnumerable>> _source_include) + where T : class + { + qs.__source_include = _source_include.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_include", qs.__source_include); + return qs; + } + + + ///A list of fields to exclude from the returned _source field + internal static SourceQueryString _SourceExclude( + this SourceQueryString qs, + IEnumerable>> _source_exclude) + where T : class + { + qs.__source_exclude = _source_exclude.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_exclude", qs.__source_exclude); + return qs; + } + + + ///A list of fields to extract and return from the _source field + internal static SourceQueryString _SourceInclude( + this SourceQueryString qs, + IEnumerable>> _source_include) + where T : class + { + qs.__source_include = _source_include.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_include", qs.__source_include); + return qs; + } + + ///Use the analyzer configured for this field (instead of passing the analyzer name) internal static AnalyzeQueryString _Field( this AnalyzeQueryString qs, @@ -113,6 +185,30 @@ internal static MultiGetQueryString _Fields( } + ///A list of fields to exclude from the returned _source field + internal static MultiGetQueryString _SourceExclude( + this MultiGetQueryString qs, + IEnumerable>> _source_exclude) + where T : class + { + qs.__source_exclude = _source_exclude.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_exclude", qs.__source_exclude); + return qs; + } + + + ///A list of fields to extract and return from the _source field + internal static MultiGetQueryString _SourceInclude( + this MultiGetQueryString qs, + IEnumerable>> _source_include) + where T : class + { + qs.__source_include = _source_include.Select(e=>(PropertyPathMarker)e); + qs.Add("_source_include", qs.__source_include); + return qs; + } + + ///Specific fields to perform the query against internal static MoreLikeThisQueryString _MltFields( this MoreLikeThisQueryString qs, diff --git a/src/Nest/Domain/Responses/BaseResponse.cs b/src/Nest/Domain/Responses/BaseResponse.cs index 2acca4dbc97..ffe8c6d7082 100644 --- a/src/Nest/Domain/Responses/BaseResponse.cs +++ b/src/Nest/Domain/Responses/BaseResponse.cs @@ -9,7 +9,7 @@ namespace Nest public interface IResponse { bool IsValid { get; } - ElasticsearchResponse ConnectionStatus { get; } + IElasticsearchResponse ConnectionStatus { get; } ElasticInferrer Infer { get; } } @@ -20,7 +20,7 @@ public BaseResponse() this.IsValid = true; } public virtual bool IsValid { get; internal set; } - public ElasticsearchResponse ConnectionStatus { get; internal set; } + public IElasticsearchResponse ConnectionStatus { get; internal set; } public ElasticInferrer _infer; public ElasticInferrer Infer @@ -31,6 +31,7 @@ public ElasticInferrer Infer return this._infer; if (this.ConnectionStatus == null) return null; + var settings = this.ConnectionStatus.Settings as IConnectionSettingsValues; if (settings == null) return null; diff --git a/src/Nest/Domain/Responses/GetMappingResponse.cs b/src/Nest/Domain/Responses/GetMappingResponse.cs index 44689d76cea..5c869df766d 100644 --- a/src/Nest/Domain/Responses/GetMappingResponse.cs +++ b/src/Nest/Domain/Responses/GetMappingResponse.cs @@ -22,7 +22,7 @@ public GetMappingResponse() this.IsValid = true; } - internal GetMappingResponse(ElasticsearchResponse status, GetRootObjectMappingWrapping dict) + internal GetMappingResponse(IElasticsearchResponse status, GetRootObjectMappingWrapping dict) { this.ConnectionStatus = status; this.IsValid = status.Success && dict != null && dict.Count > 0; diff --git a/src/Nest/Domain/Responses/IndexExistsResponse.cs b/src/Nest/Domain/Responses/IndexExistsResponse.cs index 6c744956eca..ed58811cb82 100644 --- a/src/Nest/Domain/Responses/IndexExistsResponse.cs +++ b/src/Nest/Domain/Responses/IndexExistsResponse.cs @@ -12,7 +12,7 @@ public interface IIndexExistsResponse : IResponse [JsonObject] public class IndexExistsResponse : BaseResponse, IIndexExistsResponse { - internal IndexExistsResponse(ElasticsearchResponse connectionStatus) + internal IndexExistsResponse(IElasticsearchResponse connectionStatus) { this.ConnectionStatus = connectionStatus; this.IsValid = connectionStatus.Error == null || connectionStatus.Error.HttpStatusCode == HttpStatusCode.NotFound; diff --git a/src/Nest/Domain/State/ClusterState.cs b/src/Nest/Domain/State/ClusterState.cs index 23f13b9bb2b..3bcd0762c67 100644 --- a/src/Nest/Domain/State/ClusterState.cs +++ b/src/Nest/Domain/State/ClusterState.cs @@ -85,7 +85,7 @@ public class MetadataIndexState [JsonProperty("settings")] [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] - public ElasticsearchDynamic Settings { get; internal set; } + public DynamicDictionary Settings { get; internal set; } [JsonProperty("mappings")] [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] diff --git a/src/Nest/Domain/Stats/NodeInfo.cs b/src/Nest/Domain/Stats/NodeInfo.cs index e2fd15e45eb..1b5e78fb537 100644 --- a/src/Nest/Domain/Stats/NodeInfo.cs +++ b/src/Nest/Domain/Stats/NodeInfo.cs @@ -25,7 +25,7 @@ public class NodeInfo [JsonProperty(PropertyName = "settings")] [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] - public ElasticsearchDynamic Settings { get; internal set; } + public DynamicDictionary Settings { get; internal set; } [JsonProperty(PropertyName = "os")] public NodeInfoOS OS { get; internal set; } diff --git a/src/Nest/ElasticClient-Aliases.cs b/src/Nest/ElasticClient-Aliases.cs index 7ec0189c4c0..dafa490a05b 100644 --- a/src/Nest/ElasticClient-Aliases.cs +++ b/src/Nest/ElasticClient-Aliases.cs @@ -13,7 +13,7 @@ public IIndicesOperationResponse Alias(Func al { return this.Dispatch( aliasSelector, - (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatch(p, d) + (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatch(p, d) ); } @@ -21,7 +21,7 @@ public Task AliasAsync(Func( aliasSelector, - (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatchAsync(p, d) + (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatchAsync(p, d) ); } @@ -29,14 +29,14 @@ public IGetAliasesResponse GetAliases(Func( getAliasesDescriptor, - (p, d) => this.RawDispatch.IndicesGetAliasDispatch(p) + (p, d) => this.RawDispatch.IndicesGetAliasDispatch(p) ); } public Task GetAliasesAsync(Func getAliasesDescriptor) { return this.DispatchAsync( getAliasesDescriptor, - (p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Analyze.cs b/src/Nest/ElasticClient-Analyze.cs index 8e8741980f4..84c5a23cf3a 100644 --- a/src/Nest/ElasticClient-Analyze.cs +++ b/src/Nest/ElasticClient-Analyze.cs @@ -11,14 +11,14 @@ public IAnalyzeResponse Analyze(Func analy { return this.Dispatch( analyzeSelector, - (p, d) => this.RawDispatch.IndicesAnalyzeDispatch(p, d) + (p, d) => this.RawDispatch.IndicesAnalyzeDispatch(p, d) ); } public Task AnalyzeAsync(Func analyzeSelector) { return this.DispatchAsync( analyzeSelector, - (p, d) => this.RawDispatch.IndicesAnalyzeDispatchAsync(p, d) + (p, d) => this.RawDispatch.IndicesAnalyzeDispatchAsync(p, d) ); } diff --git a/src/Nest/ElasticClient-Bulk.cs b/src/Nest/ElasticClient-Bulk.cs index 8309a08a462..65fcf1672e6 100644 --- a/src/Nest/ElasticClient-Bulk.cs +++ b/src/Nest/ElasticClient-Bulk.cs @@ -24,7 +24,7 @@ public IBulkResponse Bulk(Func bulkSelector) (p, d) => { var json = this.Serializer.SerializeBulkDescriptor(d); - return this.RawDispatch.BulkDispatch(p, json); + return this.RawDispatch.BulkDispatch(p, json); } ); } @@ -36,7 +36,7 @@ public Task BulkAsync(Func bulkSe (p, d) => { var json = this.Serializer.SerializeBulkDescriptor(d); - return this.RawDispatch.BulkDispatchAsync(p, json); + return this.RawDispatch.BulkDispatchAsync(p, json); } ); } diff --git a/src/Nest/ElasticClient-ClearCache.cs b/src/Nest/ElasticClient-ClearCache.cs index 74594fa7795..ded79a5fc02 100644 --- a/src/Nest/ElasticClient-ClearCache.cs +++ b/src/Nest/ElasticClient-ClearCache.cs @@ -18,7 +18,7 @@ public IShardsOperationResponse ClearCache(Func s); return this.Dispatch( selector, - (p, d)=> this.RawDispatch.IndicesClearCacheDispatch(p) + (p, d)=> this.RawDispatch.IndicesClearCacheDispatch(p) ); } @@ -31,7 +31,7 @@ public Task ClearCacheAsync(Func s); return this.DispatchAsync( selector, - (p, d)=> this.RawDispatch.IndicesClearCacheDispatchAsync(p) + (p, d)=> this.RawDispatch.IndicesClearCacheDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-Count.cs b/src/Nest/ElasticClient-Count.cs index 7191864a96c..bd9bb18cdb9 100644 --- a/src/Nest/ElasticClient-Count.cs +++ b/src/Nest/ElasticClient-Count.cs @@ -12,7 +12,7 @@ public ICountResponse Count(Func, CountDescriptor> coun countSelector = countSelector ?? (s => s); return this.Dispatch, CountQueryString, CountResponse>( countSelector, - (p,d) => this.RawDispatch.CountDispatch(p, d) + (p,d) => this.RawDispatch.CountDispatch(p, d) ); } @@ -21,7 +21,7 @@ public Task CountAsync(Func, CountDescript countSelector = countSelector ?? (s => s); return this.DispatchAsync, CountQueryString, CountResponse, ICountResponse>( countSelector, - (p,d) => this.RawDispatch.CountDispatchAsync(p, d) + (p,d) => this.RawDispatch.CountDispatchAsync(p, d) ); } } diff --git a/src/Nest/ElasticClient-CreateIndex.cs b/src/Nest/ElasticClient-CreateIndex.cs index 0e96a8860eb..22b1b9dcbf2 100644 --- a/src/Nest/ElasticClient-CreateIndex.cs +++ b/src/Nest/ElasticClient-CreateIndex.cs @@ -22,7 +22,7 @@ public IIndicesOperationResponse CreateIndex(string index, Func( descriptor, - (p, d) => this.RawDispatch.IndicesCreateDispatch(p, d._IndexSettings) + (p, d) => this.RawDispatch.IndicesCreateDispatch(p, d._IndexSettings) ); } public Task CreateIndexAsync(string index, Func createIndexSelector = null) @@ -33,7 +33,7 @@ public Task CreateIndexAsync(string index, Func( descriptor, - (p, d) => this.RawDispatch.IndicesCreateDispatchAsync(p, d._IndexSettings) + (p, d) => this.RawDispatch.IndicesCreateDispatchAsync(p, d._IndexSettings) ); } diff --git a/src/Nest/ElasticClient-Delete.cs b/src/Nest/ElasticClient-Delete.cs index a7e464f2bca..35491f3a885 100644 --- a/src/Nest/ElasticClient-Delete.cs +++ b/src/Nest/ElasticClient-Delete.cs @@ -11,7 +11,7 @@ public IDeleteResponse Delete(Func, DeleteDescriptor> { return this.Dispatch, DeleteQueryString, DeleteResponse>( deleteSelector, - (p, d) => this.RawDispatch.DeleteDispatch(p) + (p, d) => this.RawDispatch.DeleteDispatch(p) ); } @@ -19,7 +19,7 @@ public Task DeleteAsync(Func, DeleteDesc { return this.DispatchAsync, DeleteQueryString, DeleteResponse, IDeleteResponse>( deleteSelector, - (p, d) => this.RawDispatch.DeleteDispatchAsync(p) + (p, d) => this.RawDispatch.DeleteDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-DeleteByQuery.cs b/src/Nest/ElasticClient-DeleteByQuery.cs index 0ec4291d66b..cfc80d47fdd 100644 --- a/src/Nest/ElasticClient-DeleteByQuery.cs +++ b/src/Nest/ElasticClient-DeleteByQuery.cs @@ -11,7 +11,7 @@ public IDeleteResponse DeleteByQuery(Func, DeleteB { return this.Dispatch, DeleteByQueryQueryString, DeleteResponse>( deleteByQuerySelector, - (p, d) => this.RawDispatch.DeleteByQueryDispatch(p, d) + (p, d) => this.RawDispatch.DeleteByQueryDispatch(p, d) ); } @@ -19,7 +19,7 @@ public Task DeleteByQueryAsync(Func, DeleteByQueryQueryString, DeleteResponse, IDeleteResponse>( deleteByQuerySelector, - (p, d) => this.RawDispatch.DeleteByQueryDispatchAsync(p, d) + (p, d) => this.RawDispatch.DeleteByQueryDispatchAsync(p, d) ); } diff --git a/src/Nest/ElasticClient-Flush.cs b/src/Nest/ElasticClient-Flush.cs index 916d289e8ae..ddda8adf505 100644 --- a/src/Nest/ElasticClient-Flush.cs +++ b/src/Nest/ElasticClient-Flush.cs @@ -11,7 +11,7 @@ public IShardsOperationResponse Flush(Func sel { return this.Dispatch( selector, - (p, d) => this.RawDispatch.IndicesFlushDispatch(p) + (p, d) => this.RawDispatch.IndicesFlushDispatch(p) ); } @@ -19,7 +19,7 @@ public Task FlushAsync(Func( selector, - (p, d) => this.RawDispatch.IndicesFlushDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesFlushDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-Get.cs b/src/Nest/ElasticClient-Get.cs index caa982ec6a2..c1df482c30e 100644 --- a/src/Nest/ElasticClient-Get.cs +++ b/src/Nest/ElasticClient-Get.cs @@ -18,7 +18,7 @@ public IGetResponse Get(Func, GetDescriptor> getSelect { return this.Dispatch, GetQueryString, GetResponse>( getSelector, - (p, d) => this.RawDispatch.GetDispatch(p) + (p, d) => this.RawDispatch.GetDispatch>(p) ); } @@ -26,7 +26,7 @@ public Task> GetAsync(Func, GetDescriptor { return this.DispatchAsync, GetQueryString, GetResponse, IGetResponse>( getSelector, - (p, d) => this.RawDispatch.GetDispatchAsync(p) + (p, d) => this.RawDispatch.GetDispatchAsync>(p) ); } diff --git a/src/Nest/ElasticClient-Health.cs b/src/Nest/ElasticClient-Health.cs index 266d44b236e..0cf2397e1c8 100644 --- a/src/Nest/ElasticClient-Health.cs +++ b/src/Nest/ElasticClient-Health.cs @@ -15,7 +15,7 @@ public IHealthResponse Health(Func s); return this.Dispatch( clusterHealthSelector, - (p, d) => this.RawDispatch.ClusterHealthDispatch(p) + (p, d) => this.RawDispatch.ClusterHealthDispatch(p) ); } @@ -24,7 +24,7 @@ public Task HealthAsync(Func s); return this.DispatchAsync( clusterHealthSelector, - (p, d) => this.RawDispatch.ClusterHealthDispatchAsync(p) + (p, d) => this.RawDispatch.ClusterHealthDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Index.cs b/src/Nest/ElasticClient-Index.cs index eb1c1f4d574..0030711ca69 100644 --- a/src/Nest/ElasticClient-Index.cs +++ b/src/Nest/ElasticClient-Index.cs @@ -16,7 +16,7 @@ public IIndexResponse Index(T @object, Func, IndexDescript var descriptor = indexSelector(new IndexDescriptor().Object(@object)); return this.Dispatch, IndexQueryString, IndexResponse>( descriptor, - (p, d) => this.RawDispatch.IndexDispatch(p, @object)); + (p, d) => this.RawDispatch.IndexDispatch(p, @object)); } public Task IndexAsync(T @object, Func, IndexDescriptor> indexSelector = null) where T : class @@ -26,7 +26,7 @@ public Task IndexAsync(T @object, Func, In var descriptor = indexSelector(new IndexDescriptor().Object(@object)); return this.DispatchAsync, IndexQueryString, IndexResponse, IIndexResponse>( descriptor, - (p, d) => this.RawDispatch.IndexDispatchAsync(p, @object)); + (p, d) => this.RawDispatch.IndexDispatchAsync(p, @object)); } diff --git a/src/Nest/ElasticClient-IndexExists.cs b/src/Nest/ElasticClient-IndexExists.cs index d140f32a1d0..ff718d9e1b9 100644 --- a/src/Nest/ElasticClient-IndexExists.cs +++ b/src/Nest/ElasticClient-IndexExists.cs @@ -1,10 +1,12 @@ using System; +using System.IO; using System.Runtime.Remoting.Messaging; using System.Threading.Tasks; using Elasticsearch.Net; namespace Nest { + using IndexExistConverter = Func; public partial class ElasticClient { /// @@ -14,19 +16,26 @@ public IIndexExistsResponse IndexExists(Func( selector, - (p, d) => this.RawDispatch.IndicesExistsDispatch(p), - (c, d) => new IndexExistsResponse(c), - allow404:true + (p, d) => this.RawDispatch.IndicesExistsDispatch( + p, + new IndexExistConverter(this.DeserializeExistsResponse) + ), allow404: true ); } public Task IndexExistsAsync(Func selector) { return this.DispatchAsync( selector, - (p, d) => this.RawDispatch.IndicesExistsDispatchAsync(p), - (c, d) => new IndexExistsResponse(c), - allow404:true + (p, d) => this.RawDispatch.IndicesExistsDispatchAsync( + p, + new IndexExistConverter(this.DeserializeExistsResponse) + ), allow404:true ); } + + private IndexExistsResponse DeserializeExistsResponse(IElasticsearchResponse response, Stream stream) + { + return new IndexExistsResponse(response); + } } } diff --git a/src/Nest/ElasticClient-MappingDelete.cs b/src/Nest/ElasticClient-MappingDelete.cs index 28231f99722..847522c7ab1 100644 --- a/src/Nest/ElasticClient-MappingDelete.cs +++ b/src/Nest/ElasticClient-MappingDelete.cs @@ -14,7 +14,7 @@ public IIndicesResponse DeleteMapping(Func( selector, - (p, d) => this.RawDispatch.IndicesDeleteMappingDispatch(p) + (p, d) => this.RawDispatch.IndicesDeleteMappingDispatch(p) ); } @@ -22,7 +22,7 @@ public Task DeleteMappingAsync(Func( selector, - (p, d) => this.RawDispatch.IndicesDeleteMappingDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesDeleteMappingDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-MappingGet.cs b/src/Nest/ElasticClient-MappingGet.cs index 76fe3b067c8..e4f66e7c801 100644 --- a/src/Nest/ElasticClient-MappingGet.cs +++ b/src/Nest/ElasticClient-MappingGet.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Threading.Tasks; using Elasticsearch.Net; @@ -8,14 +9,17 @@ namespace Nest { + using GetMappingConverter = Func; public partial class ElasticClient { public IGetMappingResponse GetMapping(Func selector) { return this.Dispatch( selector, - (p, d) => this.RawDispatch.IndicesGetMappingDispatch(p), - (c, d) => this.Serializer.DeserializeGetMappingResponse(c) + (p, d) => this.RawDispatch.IndicesGetMappingDispatch( + p, + new GetMappingConverter((r, s) => this.DeserializeGetMappingResponse(r, d, s)) + ) ); } @@ -24,11 +28,21 @@ public Task GetMappingAsync(Func( selector, - (p, d) => this.RawDispatch.IndicesGetMappingDispatchAsync(p), - (c, d) => this.Serializer.DeserializeGetMappingResponse(c) + (p, d) => this.RawDispatch.IndicesGetMappingDispatchAsync( + p, + new GetMappingConverter((r, s) => this.DeserializeGetMappingResponse(r, d, s)) + ) ); } + + private GetMappingResponse DeserializeGetMappingResponse(IElasticsearchResponse response, GetMappingDescriptor d, Stream stream) + { + var dict = response.Success + ? this.Serializer.DeserializeInternal(stream) + : null; + return new GetMappingResponse(response, dict); + } } } \ No newline at end of file diff --git a/src/Nest/ElasticClient-MappingIndex.cs b/src/Nest/ElasticClient-MappingIndex.cs index afecdb9931b..4653fb206b0 100644 --- a/src/Nest/ElasticClient-MappingIndex.cs +++ b/src/Nest/ElasticClient-MappingIndex.cs @@ -19,7 +19,7 @@ public IIndexSettingsResponse GetIndexSettings(Func( selector, - (p, d) => this.RawDispatch.IndicesGetSettingsDispatch(p) + (p, d) => this.RawDispatch.IndicesGetSettingsDispatch(p) ); } @@ -27,7 +27,7 @@ public Task GetIndexSettingsAsync(Func( selector, - (p, d) => this.RawDispatch.IndicesGetSettingsDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesGetSettingsDispatchAsync(p) ); } @@ -35,14 +35,14 @@ public IIndicesResponse DeleteIndex(Func( selector, - (p, d)=> this.RawDispatch.IndicesDeleteDispatch(p) + (p, d)=> this.RawDispatch.IndicesDeleteDispatch(p) ); } public Task DeleteIndexAsync(Func selector) { return this.DispatchAsync( selector, - (p, d)=> this.RawDispatch.IndicesDeleteDispatchAsync(p) + (p, d)=> this.RawDispatch.IndicesDeleteDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-MappingType.cs b/src/Nest/ElasticClient-MappingType.cs index 0ab166c22b7..d90be86820c 100644 --- a/src/Nest/ElasticClient-MappingType.cs +++ b/src/Nest/ElasticClient-MappingType.cs @@ -23,7 +23,7 @@ public IIndicesResponse Map(Func, PutMappingDescripto { {p.Type, d._Mapping} }; - return this.RawDispatch.IndicesPutMappingDispatch(p, o); + return this.RawDispatch.IndicesPutMappingDispatch(p, o); } ); } @@ -39,7 +39,7 @@ public Task MapAsync(Func, PutMappi { {p.Type, d._Mapping} }; - return this.RawDispatch.IndicesPutMappingDispatchAsync(p, o); + return this.RawDispatch.IndicesPutMappingDispatchAsync(p, o); } ); } diff --git a/src/Nest/ElasticClient-MoreLikeThis.cs b/src/Nest/ElasticClient-MoreLikeThis.cs index d7bc4325cc6..e10705e81f3 100644 --- a/src/Nest/ElasticClient-MoreLikeThis.cs +++ b/src/Nest/ElasticClient-MoreLikeThis.cs @@ -16,7 +16,7 @@ public IQueryResponse MoreLikeThis(Func, MoreLik (p, d) => { CopySearchQueryString(d); - return this.RawDispatch.MltDispatch(p, d._Search); + return this.RawDispatch.MltDispatch>(p, d._Search); } ); @@ -28,7 +28,7 @@ public Task> MoreLikeThisAsync(Func { CopySearchQueryString(d); - return this.RawDispatch.MltDispatchAsync(p, d._Search); + return this.RawDispatch.MltDispatchAsync>(p, d._Search); }); } diff --git a/src/Nest/ElasticClient-MultiGet.cs b/src/Nest/ElasticClient-MultiGet.cs index 0981d419c83..9b0b00e3028 100644 --- a/src/Nest/ElasticClient-MultiGet.cs +++ b/src/Nest/ElasticClient-MultiGet.cs @@ -18,22 +18,28 @@ public IMultiGetResponse MultiGet(Func m { multiGetSelector.ThrowIfNull("multiGetSelector"); var descriptor = multiGetSelector(new MultiGetDescriptor(this._connectionSettings)); + var converter = CreateCovariantMultiGetConverter(descriptor); return this.Dispatch( descriptor, - (p, d) => this.RawDispatch.MgetDispatch(p, d), - this.Serializer.DeserializeMultiGetResponse + (p, d) => this.RawDispatch.MgetDispatch(p, d, converter) ); } public Task MultiGetAsync(Func multiGetSelector) { multiGetSelector.ThrowIfNull("multiGetSelector"); var descriptor = multiGetSelector(new MultiGetDescriptor(this._connectionSettings)); + var converter = CreateCovariantMultiGetConverter(descriptor); return this.DispatchAsync( descriptor, - (p, d) => this.RawDispatch.MgetDispatchAsync(p, d), - this.Serializer.DeserializeMultiGetResponse + (p, d) => this.RawDispatch.MgetDispatchAsync(p, d, converter) ); } + private JsonConverter CreateCovariantMultiGetConverter(MultiGetDescriptor descriptor) + { + var multiGetHitConverter = new MultiGetHitConverter(descriptor); + return multiGetHitConverter; + } + } } diff --git a/src/Nest/ElasticClient-MultiSearch.cs b/src/Nest/ElasticClient-MultiSearch.cs index 8987bbe023c..7ff1dcc27cb 100644 --- a/src/Nest/ElasticClient-MultiSearch.cs +++ b/src/Nest/ElasticClient-MultiSearch.cs @@ -22,9 +22,9 @@ public IMultiSearchResponse MultiSearch(Func { var json = this.Serializer.SerializeMultiSearch(d); - return this.RawDispatch.MsearchDispatch(p, json); - }, - this.Serializer.DeserializeMultiSearchResponse + var converter = this.CreateMultiSearchConverter(d); + return this.RawDispatch.MsearchDispatch(p, json, converter); + } ); } @@ -35,10 +35,16 @@ public Task MultiSearchAsync(Func { var json = this.Serializer.SerializeMultiSearch(d); - return this.RawDispatch.MsearchDispatchAsync(p, json); - }, - this.Serializer.DeserializeMultiSearchResponse + var converter = this.CreateMultiSearchConverter(d); + return this.RawDispatch.MsearchDispatchAsync(p, json, converter); + } ); } + + private JsonConverter CreateMultiSearchConverter(MultiSearchDescriptor descriptor) + { + var multiSearchConverter = new MultiSearchConverter(this._connectionSettings, descriptor); + return multiSearchConverter; + } } } diff --git a/src/Nest/ElasticClient-Nodes.cs b/src/Nest/ElasticClient-Nodes.cs index 280a889be79..32c0bbd42aa 100644 --- a/src/Nest/ElasticClient-Nodes.cs +++ b/src/Nest/ElasticClient-Nodes.cs @@ -14,7 +14,7 @@ public INodeInfoResponse NodesInfo(Func s); return this.Dispatch( selector, - (p, d)=> this.RawDispatch.NodesInfoDispatch(p) + (p, d)=> this.RawDispatch.NodesInfoDispatch(p) ); } @@ -23,7 +23,7 @@ public Task NodesInfoAsync(Func s); return this.DispatchAsync( selector, - (p, d)=> this.RawDispatch.NodesInfoDispatchAsync(p) + (p, d)=> this.RawDispatch.NodesInfoDispatchAsync(p) ); } @@ -37,7 +37,7 @@ public INodeStatsResponse NodesStats(Func s); return this.Dispatch( selector, - (p, d) => this.RawDispatch.NodesStatsDispatch(p) + (p, d) => this.RawDispatch.NodesStatsDispatch(p) ); } @@ -51,7 +51,7 @@ public Task NodesStatsAsync(Func s); return this.DispatchAsync( selector, - (p, d) => this.RawDispatch.NodesStatsDispatchAsync(p) + (p, d) => this.RawDispatch.NodesStatsDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-OpenClose.cs b/src/Nest/ElasticClient-OpenClose.cs index 4839821a311..b47ae249875 100644 --- a/src/Nest/ElasticClient-OpenClose.cs +++ b/src/Nest/ElasticClient-OpenClose.cs @@ -10,7 +10,7 @@ public IIndicesOperationResponse OpenIndex(Func( openIndexSelector, - (p, d) => this.RawDispatch.IndicesOpenDispatch(p) + (p, d) => this.RawDispatch.IndicesOpenDispatch(p) ); } @@ -18,7 +18,7 @@ public Task OpenIndexAsync(Func( openIndexSelector, - (p, d) => this.RawDispatch.IndicesOpenDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesOpenDispatchAsync(p) ); } @@ -26,7 +26,7 @@ public IIndicesOperationResponse CloseIndex(Func( closeIndexSelector, - (p, d) => this.RawDispatch.IndicesCloseDispatch(p) + (p, d) => this.RawDispatch.IndicesCloseDispatch(p) ); } @@ -34,7 +34,7 @@ public Task CloseIndexAsync(Func( closeIndexSelector, - (p, d) => this.RawDispatch.IndicesCloseDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesCloseDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Optimize.cs b/src/Nest/ElasticClient-Optimize.cs index 6236d521b00..7ab84995d69 100644 --- a/src/Nest/ElasticClient-Optimize.cs +++ b/src/Nest/ElasticClient-Optimize.cs @@ -13,7 +13,7 @@ public IShardsOperationResponse Optimize(Func s); return this.Dispatch( optimizeSelector, - (p,d) => this.RawDispatch.IndicesOptimizeDispatch(p) + (p,d) => this.RawDispatch.IndicesOptimizeDispatch(p) ); } @@ -22,7 +22,7 @@ public Task OptimizeAsync(Func s); return this.DispatchAsync( optimizeSelector, - (p,d) => this.RawDispatch.IndicesOptimizeDispatchAsync(p) + (p,d) => this.RawDispatch.IndicesOptimizeDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-Percolate.cs b/src/Nest/ElasticClient-Percolate.cs index 8ec340ed1e8..a5d8d867879 100644 --- a/src/Nest/ElasticClient-Percolate.cs +++ b/src/Nest/ElasticClient-Percolate.cs @@ -13,7 +13,7 @@ public IUnregisterPercolateResponse UnregisterPercolator(string name, Func s); return this.Dispatch( s => selector(s.Name(name)), - (p, d) => this.RawDispatch.DeleteDispatch(p), + (p, d) => this.RawDispatch.DeleteDispatch(p), allow404: true ); } @@ -23,7 +23,7 @@ public Task UnregisterPercolatorAsync(string name, selector = selector ?? (s => s); return this.DispatchAsync( s => selector(s.Name(name)), - (p, d) => this.RawDispatch.DeleteDispatchAsync(p), + (p, d) => this.RawDispatch.DeleteDispatchAsync(p), allow404: true ); } @@ -35,7 +35,7 @@ public IRegisterPercolateResponse RegisterPercolator(string name, Func, IndexQueryString, RegisterPercolateResponse>( s => percolatorSelector(s.Name(name)), - (p, d) => this.RawDispatch.IndexDispatch(p, d._RequestBody) + (p, d) => this.RawDispatch.IndexDispatch(p, d._RequestBody) ); } @@ -44,7 +44,7 @@ public Task RegisterPercolatorAsync(string name, percolatorSelector.ThrowIfNull("percolatorSelector"); return this.DispatchAsync, IndexQueryString, RegisterPercolateResponse, IRegisterPercolateResponse>( s => percolatorSelector(s.Name(name)), - (p, d) => this.RawDispatch.IndexDispatchAsync(p, d._RequestBody) + (p, d) => this.RawDispatch.IndexDispatchAsync(p, d._RequestBody) ); } @@ -70,7 +70,7 @@ public IPercolateResponse Percolate(K @object, Func s); return this.Dispatch, PercolateQueryString, PercolateResponse>( s => percolateSelector(s.Object(@object)), - (p, d) => this.RawDispatch.PercolateDispatch(p, d) + (p, d) => this.RawDispatch.PercolateDispatch(p, d) ); } @@ -81,7 +81,7 @@ public Task PercolateAsync(K @object, Func s); return this.DispatchAsync, PercolateQueryString, PercolateResponse, IPercolateResponse>( s => percolateSelector(s.Object(@object)), - (p, d) => this.RawDispatch.PercolateDispatchAsync(p, d) + (p, d) => this.RawDispatch.PercolateDispatchAsync(p, d) ); } } diff --git a/src/Nest/ElasticClient-Refresh.cs b/src/Nest/ElasticClient-Refresh.cs index a82e53a1326..fd4438554ee 100644 --- a/src/Nest/ElasticClient-Refresh.cs +++ b/src/Nest/ElasticClient-Refresh.cs @@ -13,7 +13,7 @@ public IShardsOperationResponse Refresh(Func s); return this.Dispatch( refreshSelector, - (p,d) => this.RawDispatch.IndicesRefreshDispatch(p) + (p,d) => this.RawDispatch.IndicesRefreshDispatch(p) ); } @@ -22,7 +22,7 @@ public Task RefreshAsync(Func s); return this.DispatchAsync( refreshSelector, - (p,d)=> this.RawDispatch.IndicesRefreshDispatchAsync(p) + (p,d)=> this.RawDispatch.IndicesRefreshDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-RootNodeInfo.cs b/src/Nest/ElasticClient-RootNodeInfo.cs index ead9ec17e49..617956b0654 100644 --- a/src/Nest/ElasticClient-RootNodeInfo.cs +++ b/src/Nest/ElasticClient-RootNodeInfo.cs @@ -16,7 +16,7 @@ public IRootInfoResponse RootNodeInfo(Func selec selector = selector ?? ((i) => i); return this.Dispatch( selector, - (p, d) => this.RawDispatch.InfoDispatch(p) + (p, d) => this.RawDispatch.InfoDispatch(p) ); } @@ -29,7 +29,7 @@ public Task RootNodeInfoAsync(Func i); return this.DispatchAsync( selector, - (p, d) => this.RawDispatch.InfoDispatchAsync(p) + (p, d) => this.RawDispatch.InfoDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Scroll.cs b/src/Nest/ElasticClient-Scroll.cs index 0ae3d13308a..5a0e8593959 100644 --- a/src/Nest/ElasticClient-Scroll.cs +++ b/src/Nest/ElasticClient-Scroll.cs @@ -16,7 +16,7 @@ public IQueryResponse Scroll( { var scrollId = p.ScrollId; p.ScrollId = null; - return this.RawDispatch.ScrollDispatch(p, scrollId); + return this.RawDispatch.ScrollDispatch>(p, scrollId); } ); } @@ -30,7 +30,7 @@ public Task> ScrollAsync( { var scrollId = p.ScrollId; p.ScrollId = null; - return this.RawDispatch.ScrollDispatchAsync(p, scrollId); + return this.RawDispatch.ScrollDispatchAsync>(p, scrollId); } ); } diff --git a/src/Nest/ElasticClient-Search.cs b/src/Nest/ElasticClient-Search.cs index d08632aef89..912b3d5f481 100644 --- a/src/Nest/ElasticClient-Search.cs +++ b/src/Nest/ElasticClient-Search.cs @@ -8,6 +8,7 @@ using System.Linq; using Nest.Resolvers; using Elasticsearch.Net; +using Newtonsoft.Json; namespace Nest { @@ -32,8 +33,9 @@ public IQueryResponse Search(Func, Sear searchSelector.ThrowIfNull("searchSelector"); var descriptor = searchSelector(new SearchDescriptor()); var pathInfo = ((IPathInfo)descriptor).ToPathInfo(this._connectionSettings); - var status = this.RawDispatch.SearchDispatch(pathInfo, descriptor); - return this.Serializer.DeserializeSearchResponse(status, descriptor); + var deserializationState = CreateCovariantSearchSelector(descriptor); + var status = this.RawDispatch.SearchDispatch>(pathInfo, descriptor, deserializationState); + return status.Success ? status.Response : CreateInvalidInstance>(status); } @@ -55,8 +57,31 @@ public Task> SearchAsync(Func()); var pathInfo = ((IPathInfo)descriptor).ToPathInfo(this._connectionSettings); - return this.RawDispatch.SearchDispatchAsync(pathInfo, descriptor) - .ContinueWith(t=> this.Serializer.DeserializeSearchResponse(t.Result, descriptor)); + var deserializationState = CreateCovariantSearchSelector(descriptor); + return this.RawDispatch.SearchDispatchAsync>(pathInfo, descriptor, deserializationState) + .ContinueWith>(t=> t.Result.Success ? + t.Result.Response : CreateInvalidInstance>(t.Result)); + } + + private JsonConverter CreateCovariantSearchSelector(SearchDescriptor originalSearchDescriptor) + where T : class + where TResult : class + { + var types = (originalSearchDescriptor._Types ?? Enumerable.Empty()).Where(t => t.Type != null); + if (originalSearchDescriptor._ConcreteTypeSelector == null && types.Any(t => t.Type != typeof(TResult))) + { + var typeDictionary = types.ToDictionary(this.Infer.TypeName, t => t.Type); + originalSearchDescriptor._ConcreteTypeSelector = (o, h) => + { + Type t; + if (!typeDictionary.TryGetValue(h.Type, out t)) + return typeof(TResult); + return t; + }; + } + if (originalSearchDescriptor._ConcreteTypeSelector == null) + return null; + return new ConcreteTypeConverter(originalSearchDescriptor._ConcreteTypeSelector); } } } \ No newline at end of file diff --git a/src/Nest/ElasticClient-Segments.cs b/src/Nest/ElasticClient-Segments.cs index 87b9f7a06d2..2398c91d69d 100644 --- a/src/Nest/ElasticClient-Segments.cs +++ b/src/Nest/ElasticClient-Segments.cs @@ -12,7 +12,7 @@ public ISegmentsResponse Segments(Func s segmentsSelector = segmentsSelector ?? (s => s); return this.Dispatch( segmentsSelector, - (p, d) => this.RawDispatch.IndicesSegmentsDispatch(p) + (p, d) => this.RawDispatch.IndicesSegmentsDispatch(p) ); } @@ -21,7 +21,7 @@ public Task SegmentsAsync(Func s); return this.DispatchAsync( segmentsSelector, - (p, d) => this.RawDispatch.IndicesSegmentsDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesSegmentsDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Snapshot.cs b/src/Nest/ElasticClient-Snapshot.cs index 7763cccfb19..0df000dba6e 100644 --- a/src/Nest/ElasticClient-Snapshot.cs +++ b/src/Nest/ElasticClient-Snapshot.cs @@ -12,7 +12,7 @@ public IShardsOperationResponse Snapshot(Func s); return this.Dispatch( snapshotSelector, - (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatch(p) + (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatch(p) ); } @@ -21,7 +21,7 @@ public Task SnapshotAsync(Func s); return this.DispatchAsync( snapshotSelector, - (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatchAsync(p) ); } diff --git a/src/Nest/ElasticClient-Source.cs b/src/Nest/ElasticClient-Source.cs index 1f5d7de1fc7..96e44f3df1d 100644 --- a/src/Nest/ElasticClient-Source.cs +++ b/src/Nest/ElasticClient-Source.cs @@ -17,7 +17,7 @@ public FieldSelection SourceFields(Func, GetDescriptor { return this.Dispatch, GetQueryString, GetResponse>( getSelector, - (p, d) => this.RawDispatch.GetDispatch(p) + (p, d) => this.RawDispatch.GetDispatch>(p) ).Fields; } @@ -25,25 +25,25 @@ public Task> SourceFieldsAsync(Func, GetDe { return this.DispatchAsync, GetQueryString, GetResponse, IGetResponse>( getSelector, - (p, d) => this.RawDispatch.GetDispatchAsync(p) + (p, d) => this.RawDispatch.GetDispatchAsync>(p) ).ContinueWith(t=>t.Result.Fields); } - //TODO replace with actual call to _source in es 1.0 and NEST 1.0 - public T Source(Func, GetDescriptor> getSelector) where T : class + public T Source(Func, SourceDescriptor> getSelector) where T : class { - return this.Dispatch, GetQueryString, GetResponse>( - getSelector, - (p, d) => this.RawDispatch.GetDispatch(p) - ).Source; + var descriptor = getSelector(new SourceDescriptor()); + var pathInfo = ((IPathInfo)descriptor).ToPathInfo(_connectionSettings); + var response = this.RawDispatch.GetSourceDispatch(pathInfo); + return response.Response; } - public Task SourceAsync(Func, GetDescriptor> getSelector) where T : class + public Task SourceAsync(Func, SourceDescriptor> getSelector) where T : class { - return this.DispatchAsync, GetQueryString, GetResponse, IGetResponse>( - getSelector, - (p, d) => this.RawDispatch.GetDispatchAsync(p) - ).ContinueWith(t=>t.Result.Source); + var descriptor = getSelector(new SourceDescriptor()); + var pathInfo = ((IPathInfo)descriptor).ToPathInfo(_connectionSettings); + var response = this.RawDispatch.GetSourceDispatchAsync(pathInfo) + .ContinueWith(t=>t.Result.Response); + return response; } diff --git a/src/Nest/ElasticClient-State.cs b/src/Nest/ElasticClient-State.cs index a3800dd4090..90e3bf83d21 100644 --- a/src/Nest/ElasticClient-State.cs +++ b/src/Nest/ElasticClient-State.cs @@ -12,7 +12,7 @@ public IClusterStateResponse ClusterState(Func s); return this.Dispatch( clusterStateSelector, - (p, d) => this.RawDispatch.ClusterStateDispatch(p) + (p, d) => this.RawDispatch.ClusterStateDispatch(p) ); } @@ -22,7 +22,7 @@ public Task ClusterStateAsync(Func( clusterStateSelector, - (p, d) => this.RawDispatch.ClusterStateDispatchAsync(p) + (p, d) => this.RawDispatch.ClusterStateDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Stats.cs b/src/Nest/ElasticClient-Stats.cs index fd55b0cb655..fc0acd20f50 100644 --- a/src/Nest/ElasticClient-Stats.cs +++ b/src/Nest/ElasticClient-Stats.cs @@ -14,7 +14,7 @@ public IGlobalStatsResponse IndicesStats(Func s); return this.Dispatch( selector, - (p, d) => this.RawDispatch.IndicesStatsDispatch(p) + (p, d) => this.RawDispatch.IndicesStatsDispatch(p) ); } @@ -23,7 +23,7 @@ public Task IndicesStatsAsync(Func s); return this.DispatchAsync( selector, - (p, d) => this.RawDispatch.IndicesStatsDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesStatsDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Status.cs b/src/Nest/ElasticClient-Status.cs index 59a73223461..c65de3b571c 100644 --- a/src/Nest/ElasticClient-Status.cs +++ b/src/Nest/ElasticClient-Status.cs @@ -15,7 +15,7 @@ public IStatusResponse Status(Func s); return this.Dispatch( selector, - (p, d) => this.RawDispatch.IndicesStatusDispatch(p) + (p, d) => this.RawDispatch.IndicesStatusDispatch(p) ); } public Task StatusAsync(Func selector = null) @@ -23,7 +23,7 @@ public Task StatusAsync(Func s); return this.DispatchAsync( selector, - (p, d) => this.RawDispatch.IndicesStatusDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesStatusDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Template.cs b/src/Nest/ElasticClient-Template.cs index 6f3883c9153..eadadaf6a91 100644 --- a/src/Nest/ElasticClient-Template.cs +++ b/src/Nest/ElasticClient-Template.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Threading.Tasks; using Elasticsearch.Net; @@ -8,37 +9,56 @@ namespace Nest { + using GetTemplateConverter = Func; public partial class ElasticClient { public ITemplateResponse GetTemplate(string name, Func getTemplateSelector = null) { - getTemplateSelector = getTemplateSelector ?? (s => s); + getTemplateSelector = getTemplateSelector ?? (s => s); return this.Dispatch( (d) => getTemplateSelector(d.Name(name)), - (p, d) => this.RawDispatch.IndicesGetTemplateDispatch(p), - this.Serializer.DeserializeTemplateResponse + (p, d) => this.RawDispatch.IndicesGetTemplateDispatch(p, (GetTemplateConverter)this.DeserializeTemplateResponse) ); } - + public Task GetTemplateAsync(string name, Func getTemplateSelector = null) { - getTemplateSelector = getTemplateSelector ?? (s => s); + getTemplateSelector = getTemplateSelector ?? (s => s); return this.DispatchAsync( d => getTemplateSelector(d.Name(name)), - (p, d) => this.RawDispatch.IndicesGetTemplateDispatchAsync(p), - this.Serializer.DeserializeTemplateResponse + (p, d) => this.RawDispatch.IndicesGetTemplateDispatchAsync( + p, (GetTemplateConverter)this.DeserializeTemplateResponse) ); } + private TemplateResponse DeserializeTemplateResponse( + IElasticsearchResponse response, + Stream stream) + { + if (!response.Success) return new TemplateResponse { ConnectionStatus = response, IsValid = false }; + + var dict = this.Serializer.DeserializeInternal>(stream); + if (dict.Count == 0) + throw new DslException("Could not deserialize TemplateMapping"); + + return new TemplateResponse + { + ConnectionStatus = response, + IsValid = true, + Name = dict.First().Key, + TemplateMapping = dict.First().Value + }; + } + public IIndicesOperationResponse PutTemplate(string name, Func putTemplateSelector) { putTemplateSelector.ThrowIfNull("putTemplateSelector"); var descriptor = putTemplateSelector(new PutTemplateDescriptor(this._connectionSettings).Name(name)); return this.Dispatch( descriptor, - (p, d) => this.RawDispatch.IndicesPutTemplateDispatch(p, d._TemplateMapping) + (p, d) => this.RawDispatch.IndicesPutTemplateDispatch(p, d._TemplateMapping) ); } @@ -48,25 +68,25 @@ public Task PutTemplateAsync(string name, Func( descriptor, - (p, d) => this.RawDispatch.IndicesPutTemplateDispatchAsync(p, d._TemplateMapping) + (p, d) => this.RawDispatch.IndicesPutTemplateDispatchAsync(p, d._TemplateMapping) ); } - + public IIndicesOperationResponse DeleteTemplate(string name, Func deleteTemplateSelector = null) { - deleteTemplateSelector = deleteTemplateSelector ?? (s => s); + deleteTemplateSelector = deleteTemplateSelector ?? (s => s); return this.Dispatch( d => deleteTemplateSelector(d.Name(name)), - (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatch(p) + (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatch(p) ); } - + public Task DeleteTemplateAync(string name, Func deleteTemplateSelector = null) { - deleteTemplateSelector = deleteTemplateSelector ?? (s => s); + deleteTemplateSelector = deleteTemplateSelector ?? (s => s); return this.DispatchAsync( d => deleteTemplateSelector(d.Name(name)), - (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient-Update.cs b/src/Nest/ElasticClient-Update.cs index b664e134639..2ec5b865c34 100644 --- a/src/Nest/ElasticClient-Update.cs +++ b/src/Nest/ElasticClient-Update.cs @@ -18,7 +18,7 @@ public IUpdateResponse Update(Func, UpdateDescripto { return this.Dispatch, UpdateQueryString, UpdateResponse>( updateSelector, - (p, d) => this.RawDispatch.UpdateDispatch(p, d) + (p, d) => this.RawDispatch.UpdateDispatch(p, d) ); } @@ -32,7 +32,7 @@ public Task UpdateAsync(Func, Upda { return this.DispatchAsync, UpdateQueryString, UpdateResponse, IUpdateResponse>( updateSelector, - (p, d) => this.RawDispatch.UpdateDispatchAsync(p, d) + (p, d) => this.RawDispatch.UpdateDispatchAsync(p, d) ); } } diff --git a/src/Nest/ElasticClient-UpdateSettings.cs b/src/Nest/ElasticClient-UpdateSettings.cs index aaa3ec27005..33fdbd0ae63 100644 --- a/src/Nest/ElasticClient-UpdateSettings.cs +++ b/src/Nest/ElasticClient-UpdateSettings.cs @@ -19,7 +19,7 @@ Func updateSettingsSelector { return this.Dispatch( updateSettingsSelector, - (p, d) => this.RawDispatch.IndicesPutSettingsDispatch(p, d) + (p, d) => this.RawDispatch.IndicesPutSettingsDispatch(p, d) ); } @@ -29,7 +29,7 @@ Func updateSettingsSelector { return this.DispatchAsync( updateSettingsSelector, - (p, d) => this.RawDispatch.IndicesPutSettingsDispatchAsync(p, d) + (p, d) => this.RawDispatch.IndicesPutSettingsDispatchAsync(p, d) ); } diff --git a/src/Nest/ElasticClient-Validate.cs b/src/Nest/ElasticClient-Validate.cs index b41d0d85b9c..906aa2fade1 100644 --- a/src/Nest/ElasticClient-Validate.cs +++ b/src/Nest/ElasticClient-Validate.cs @@ -17,7 +17,7 @@ public IValidateResponse Validate(Func, ValidateQu { return this.Dispatch, ValidateQueryQueryString, ValidateResponse>( querySelector, - (p, d) => this.RawDispatch.IndicesValidateQueryDispatch(p, d) + (p, d) => this.RawDispatch.IndicesValidateQueryDispatch(p, d) ); } @@ -29,7 +29,7 @@ public Task ValidateAsync(Func, { return this.DispatchAsync, ValidateQueryQueryString, ValidateResponse, IValidateResponse>( querySelector, - (p, d) => this.RawDispatch.IndicesValidateQueryDispatchAsync(p, d) + (p, d) => this.RawDispatch.IndicesValidateQueryDispatchAsync(p, d) ); } diff --git a/src/Nest/ElasticClient-Warmers.cs b/src/Nest/ElasticClient-Warmers.cs index 9a41eb9d17b..907cfa3ac1e 100644 --- a/src/Nest/ElasticClient-Warmers.cs +++ b/src/Nest/ElasticClient-Warmers.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Configuration; +using System.IO; using System.Linq; using System.Threading.Tasks; using Elasticsearch.Net; @@ -9,6 +10,7 @@ namespace Nest { + using GetWarmerConverter = Func; public partial class ElasticClient { public IIndicesOperationResponse PutWarmer(string name, Func selector) @@ -16,7 +18,7 @@ public IIndicesOperationResponse PutWarmer(string name, Func( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesPutWarmerDispatch(p, d) + (p, d) => this.RawDispatch.IndicesPutWarmerDispatch(p, d) ); } @@ -25,7 +27,7 @@ public Task PutWarmerAsync(string name, Func( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesPutWarmerDispatchAsync(p, d) + (p, d) => this.RawDispatch.IndicesPutWarmerDispatchAsync(p, d) ); } @@ -34,8 +36,10 @@ public IWarmerResponse GetWarmer(string name, Func s); return this.Dispatch( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesGetWarmerDispatch(p), - this.Serializer.DeserializeWarmerResponse + (p, d) => this.RawDispatch.IndicesGetWarmerDispatch( + p, + new GetWarmerConverter(this.DeserializeWarmerResponse) + ) ); } @@ -44,17 +48,47 @@ public Task GetWarmerAsync(string name, Func s); return this.DispatchAsync( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesGetWarmerDispatchAsync(p), - this.Serializer.DeserializeWarmerResponse + (p, d) => this.RawDispatch.IndicesGetWarmerDispatchAsync( + p, + new GetWarmerConverter(this.DeserializeWarmerResponse) + ) ); } + + private WarmerResponse DeserializeWarmerResponse(IElasticsearchResponse connectionStatus, Stream stream) + { + if (!connectionStatus.Success) + return new WarmerResponse() { ConnectionStatus = connectionStatus, IsValid = false }; + + var dict = this.Serializer.DeserializeInternal>>>(stream); + var indices = new Dictionary>(); + foreach (var kv in dict) + { + var indexDict = kv.Value; + Dictionary warmers; + if (indexDict == null || !indexDict.TryGetValue("warmers", out warmers) || warmers == null) + continue; + foreach (var kvW in warmers) + { + kvW.Value.Name = kvW.Key; + } + indices.Add(kv.Key, warmers); + } + return new WarmerResponse + { + ConnectionStatus = connectionStatus, + IsValid = true, + Indices = indices + }; + } + public IIndicesOperationResponse DeleteWarmer(string name, Func selector = null) { selector = selector ?? (s => s); return this.Dispatch( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatch(p) + (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatch(p) ); } @@ -63,7 +97,7 @@ public Task DeleteWarmerAsync(string name, Func s); return this.DispatchAsync( d => selector(d.Name(name).AllIndices()), - (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatchAsync(p) + (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatchAsync(p) ); } } diff --git a/src/Nest/ElasticClient.cs b/src/Nest/ElasticClient.cs index a0d51d2d3f6..12285bc11da 100644 --- a/src/Nest/ElasticClient.cs +++ b/src/Nest/ElasticClient.cs @@ -47,8 +47,7 @@ public ElasticClient(IConnectionSettingsValues settings, IConnection connection private R Dispatch( Func selector - , Func, D, ElasticsearchResponse> dispatch - , Func resultSelector = null + , Func, D, ElasticsearchResponse> dispatch , bool allow404 = false ) where Q : FluentQueryString, new() @@ -57,14 +56,13 @@ Func selector { selector.ThrowIfNull("selector"); var descriptor = selector(new D()); - return Dispatch(descriptor, dispatch, resultSelector, allow404); + return Dispatch(descriptor, dispatch, allow404); } private R Dispatch( D descriptor - , Func, D, ElasticsearchResponse> dispatch - , Func resultSelector = null + , Func, D, ElasticsearchResponse> dispatch , bool allow404 = false ) where Q : FluentQueryString, new() @@ -72,15 +70,25 @@ D descriptor where R : BaseResponse { var pathInfo = descriptor.ToPathInfo(this._connectionSettings); - resultSelector = resultSelector ?? ((c, d) => this.Serializer.ToParsedResponse(c, allow404)); + Func, D, R> resultSelector = + ((c, d) => c.Success || allow404 && c.HttpStatusCode == 404 ? c.Response : CreateInvalidInstance(c)); var response = dispatch(pathInfo, descriptor); return resultSelector(response, descriptor); } + + + private static R CreateInvalidInstance(IElasticsearchResponse response) where R : BaseResponse + { + var r = (R)typeof(R).CreateInstance(); + r.ConnectionStatus = response; + r.IsValid = false; + return r; + } + internal Task DispatchAsync( Func selector - , Func, D, Task> dispatch - , Func resultSelector = null + , Func, D, Task>> dispatch , bool allow404 = false ) where Q : FluentQueryString, new() @@ -90,13 +98,12 @@ Func selector { selector.ThrowIfNull("selector"); var descriptor = selector(new D()); - return DispatchAsync(descriptor, dispatch, resultSelector, allow404); + return DispatchAsync(descriptor, dispatch, allow404); } private Task DispatchAsync( D descriptor - , Func, D, Task> dispatch - , Func resultSelector = null + , Func, D, Task>> dispatch , bool allow404 = false ) where Q : FluentQueryString, new() @@ -105,7 +112,8 @@ D descriptor where I : IResponse { var pathInfo = descriptor.ToPathInfo(this._connectionSettings); - resultSelector = resultSelector ?? ((c, d) => this.Serializer.ToParsedResponse(c, allow404)); + Func, D, R> resultSelector = + ((c, d) => c.Success || allow404 && c.HttpStatusCode == 404 ? c.Response : CreateInvalidInstance(c)); return dispatch(pathInfo, descriptor) .ContinueWith(r => resultSelector(r.Result, descriptor)); } diff --git a/src/Nest/Exception/ReindexException.cs b/src/Nest/Exception/ReindexException.cs index 9482bab7540..1b8860ef764 100644 --- a/src/Nest/Exception/ReindexException.cs +++ b/src/Nest/Exception/ReindexException.cs @@ -5,9 +5,9 @@ namespace Nest { public class ReindexException: Exception { - public ElasticsearchResponse Status { get; private set; } + public IElasticsearchResponse Status { get; private set; } - public ReindexException(ElasticsearchResponse status, string message = null) : base(message) + public ReindexException(IElasticsearchResponse status, string message = null) : base(message) { this.Status = status; } diff --git a/src/Nest/ExposedInternals/INestSerializer.cs b/src/Nest/ExposedInternals/INestSerializer.cs index cb0af864e2f..b629ba010ed 100644 --- a/src/Nest/ExposedInternals/INestSerializer.cs +++ b/src/Nest/ExposedInternals/INestSerializer.cs @@ -2,6 +2,7 @@ using System.Collections.Concurrent; using System.Collections.Generic; using System.Collections.ObjectModel; +using System.IO; using System.Linq; using System.Security.Cryptography.X509Certificates; using System.Text; @@ -17,9 +18,9 @@ namespace Nest { public interface INestSerializer : IElasticsearchSerializer { - IQueryResponse DeserializeSearchResponse(ElasticsearchResponse status, SearchDescriptor originalSearchDescriptor) - where TResult : class - where T : class; + //IQueryResponse DeserializeSearchResponse(ElasticsearchResponse status, SearchDescriptor originalSearchDescriptor) + // where TResult : class + // where T : class; string SerializeBulkDescriptor(BulkDescriptor bulkDescriptor); @@ -28,19 +29,24 @@ IQueryResponse DeserializeSearchResponse(ElasticsearchRespo /// string SerializeMultiSearch(MultiSearchDescriptor multiSearchDescriptor); - TemplateResponse DeserializeTemplateResponse(ElasticsearchResponse c, GetTemplateDescriptor d); - GetMappingResponse DeserializeGetMappingResponse(ElasticsearchResponse c); - MultiGetResponse DeserializeMultiGetResponse(ElasticsearchResponse c, MultiGetDescriptor d); - MultiSearchResponse DeserializeMultiSearchResponse(ElasticsearchResponse c, MultiSearchDescriptor d); - WarmerResponse DeserializeWarmerResponse(ElasticsearchResponse connectionStatus, GetWarmerDescriptor getWarmerDescriptor); /// - /// Returns a response of type R based on the connection status by trying parsing status.Result into R + /// Deserialize to type T bypassing checks for custom deserialization state and or BaseResponse return types. /// - R ToParsedResponse( - ElasticsearchResponse status, - bool notFoundIsAValidResponse = false, - JsonConverter piggyBackJsonConverter = null - ) where R : BaseResponse; + T DeserializeInternal(Stream stream); + //TemplateResponse DeserializeTemplateResponse(ElasticsearchResponse c, GetTemplateDescriptor d); + //GetMappingResponse DeserializeGetMappingResponse(ElasticsearchResponse c); + //MultiGetResponse DeserializeMultiGetResponse(ElasticsearchResponse c, MultiGetDescriptor d); + //MultiSearchResponse DeserializeMultiSearchResponse(ElasticsearchResponse c, MultiSearchDescriptor d); + //WarmerResponse DeserializeWarmerResponse(ElasticsearchResponse connectionStatus, GetWarmerDescriptor getWarmerDescriptor); + + ///// + ///// Returns a response of type R based on the connection status by trying parsing status.Result into R + ///// + //R ToParsedResponse( + // ElasticsearchResponse status, + // bool notFoundIsAValidResponse = false, + // JsonConverter piggyBackJsonConverter = null + // ) where R : BaseResponse; } } diff --git a/src/Nest/ExposedInternals/NestSerializer.cs b/src/Nest/ExposedInternals/NestSerializer.cs index 1e7b9f8e701..cbd9a067220 100644 --- a/src/Nest/ExposedInternals/NestSerializer.cs +++ b/src/Nest/ExposedInternals/NestSerializer.cs @@ -1,7 +1,10 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; +using System.Security.Cryptography; using System.Text; +using System.Threading.Tasks; using Elasticsearch.Net; using Elasticsearch.Net.Serialization; using Nest.Resolvers; @@ -21,39 +24,39 @@ public NestSerializer(IConnectionSettingsValues settings) this._serializationSettings = this.CreateSettings(); } - /// - /// Returns a response of type R based on the connection status by trying parsing status.Result into R - /// - /// - public virtual R ToParsedResponse( - ElasticsearchResponse status, - bool notFoundIsAValidResponse = false, - JsonConverter piggyBackJsonConverter = null - ) where R : BaseResponse - { - var jsonSettings =piggyBackJsonConverter != null - ? this.CreateSettings(piggyBackJsonConverter) - : this._serializationSettings; + ///// + ///// Returns a response of type R based on the connection status by trying parsing status.Result into R + ///// + ///// + //public virtual R ToParsedResponse( + // ElasticsearchResponse status, + // bool notFoundIsAValidResponse = false, + // JsonConverter piggyBackJsonConverter = null + // ) where R : BaseResponse + //{ + // var jsonSettings =piggyBackJsonConverter != null + // ? this.CreateSettings(piggyBackJsonConverter) + // : this._serializationSettings; - var isValid = - (notFoundIsAValidResponse) - ? (status.Error == null - || status.Error.HttpStatusCode == System.Net.HttpStatusCode.NotFound) - : (status.Error == null); - - R r; - if (!isValid) - r = (R)typeof (R).CreateInstance(); - else - r = JsonConvert.DeserializeObject(status.Result, jsonSettings); - - var baseResponse = r as BaseResponse; - if (baseResponse == null) - return null; - baseResponse.IsValid = isValid; - baseResponse.ConnectionStatus = status; - return r; - } + // var isValid = + // (notFoundIsAValidResponse) + // ? (status.Error == null + // || status.Error.HttpStatusCode == System.Net.HttpStatusCode.NotFound) + // : (status.Error == null); + + // R r; + // if (!isValid) + // r = (R)typeof (R).CreateInstance(); + // else + // r = JsonConvert.DeserializeObject(status.Result, jsonSettings); + + // var baseResponse = r as BaseResponse; + // if (baseResponse == null) + // return null; + // baseResponse.IsValid = isValid; + // baseResponse.ConnectionStatus = status; + // return r; + //} public virtual byte[] Serialize(object data, SerializationFormatting formatting = SerializationFormatting.Indented) { @@ -65,41 +68,60 @@ public virtual byte[] Serialize(object data, SerializationFormatting formatting /// /// Deserialize an object /// - /// When deserializing a ConnectionStatus to a BaseResponse type this controls whether a 404 is a valid response - public virtual T Deserialize(byte[] bytes) where T : class - { - if (bytes == null) return null; - return JsonConvert.DeserializeObject(bytes.Utf8String(), this._serializationSettings); - } - - public IQueryResponse DeserializeSearchResponse(ElasticsearchResponse status, SearchDescriptor originalSearchDescriptor) - where TResult : class - where T : class + public virtual T Deserialize(IElasticsearchResponse response, Stream stream, object deserializationState = null) { - var types = (originalSearchDescriptor._Types ?? Enumerable.Empty()) - .Where(t => t.Type != null); - if (originalSearchDescriptor._ConcreteTypeSelector == null && types.Any(t => t.Type != typeof(TResult))) + var settings = this._serializationSettings; + var customConverter = deserializationState as Func; + if (customConverter != null) { - var inferrer = new ElasticInferrer(this._settings); - var typeDictionary = types - .ToDictionary(inferrer.TypeName, t => t.Type); - - originalSearchDescriptor._ConcreteTypeSelector = (o, h) => - { - Type t; - if (!typeDictionary.TryGetValue(h.Type, out t)) - return typeof(TResult); - return t; - }; + var t = customConverter(response, stream); + return t; } - if (originalSearchDescriptor._ConcreteTypeSelector == null) - return this.ToParsedResponse>(status, piggyBackJsonConverter: null, notFoundIsAValidResponse: true); + var state = deserializationState as JsonConverter; + if (state != null) + settings = this.CreateSettings(state); - var concreteTypeConverter = new ConcreteTypeConverter(originalSearchDescriptor._ConcreteTypeSelector); - return this.ToParsedResponse>(status, piggyBackJsonConverter: concreteTypeConverter, notFoundIsAValidResponse: true); + return _Deserialize(response, stream, settings); } + /// + /// Deserialize to type T bypassing checks for custom deserialization state and or BaseResponse return types. + /// + public T DeserializeInternal(Stream stream) + { + var serializer = JsonSerializer.Create(this._serializationSettings); + var jsonTextReader = new JsonTextReader(new StreamReader(stream)); + var t = (T) serializer.Deserialize(jsonTextReader, typeof (T)); + return t; + + } + + protected internal T _Deserialize(IElasticsearchResponse response, Stream stream, JsonSerializerSettings settings = null) + { + settings = settings ?? _serializationSettings; + var serializer = JsonSerializer.Create(settings); + var jsonTextReader = new JsonTextReader(new StreamReader(stream)); + var t = (T) serializer.Deserialize(jsonTextReader, typeof (T)); + var r = t as BaseResponse; + if (r != null) + { + r.ConnectionStatus = response; + } + return t; + } + + public virtual Task DeserializeAsync(IElasticsearchResponse response, Stream stream, object deserializationState = null) + { + //TODO sadly json .net async does not read the stream async so + //figure out wheter reading the stream async on our own might be beneficial + //over memory possible memory usage + var tcs = new TaskCompletionSource(); + var r = this.Deserialize(response, stream, deserializationState); + tcs.SetResult(r); + return tcs.Task; + } + internal JsonSerializerSettings CreateSettings(JsonConverter piggyBackJsonConverter = null) { var piggyBackState = new JsonConverterPiggyBackState { ActualJsonConverter = piggyBackJsonConverter }; @@ -202,73 +224,6 @@ public string SerializeMultiSearch(MultiSearchDescriptor multiSearchDescriptor) return json; } - public TemplateResponse DeserializeTemplateResponse(ElasticsearchResponse c, GetTemplateDescriptor d) - { - if (!c.Success) return new TemplateResponse { ConnectionStatus = c, IsValid = false }; - - var dict = c.Deserialize>(); - if (dict.Count == 0) - throw new DslException("Could not deserialize TemplateMapping"); - - return new TemplateResponse - { - ConnectionStatus = c, - IsValid = true, - Name = dict.First().Key, - TemplateMapping = dict.First().Value - }; - } - - public GetMappingResponse DeserializeGetMappingResponse(ElasticsearchResponse c) - { - var dict = c.Success - ? c.Deserialize() - : null; - return new GetMappingResponse(c, dict); - - } - - public MultiGetResponse DeserializeMultiGetResponse(ElasticsearchResponse c, MultiGetDescriptor d) - { - var multiGetHitConverter = new MultiGetHitConverter(d); - var multiGetResponse = this.ToParsedResponse(c, piggyBackJsonConverter: multiGetHitConverter); - return multiGetResponse; - } - - public MultiSearchResponse DeserializeMultiSearchResponse(ElasticsearchResponse c, MultiSearchDescriptor d) - { - var multiSearchConverter = new MultiSearchConverter(this._settings, d); - var multiSearchResponse = this.ToParsedResponse(c, piggyBackJsonConverter: multiSearchConverter); - return multiSearchResponse; - } - - public WarmerResponse DeserializeWarmerResponse(ElasticsearchResponse connectionStatus, GetWarmerDescriptor getWarmerDescriptor) - { - if (!connectionStatus.Success) - return new WarmerResponse() { ConnectionStatus = connectionStatus, IsValid = false }; - - var dict = connectionStatus.Deserialize>>>(); - var indices = new Dictionary>(); - foreach (var kv in dict) - { - var indexDict = kv.Value; - Dictionary warmers; - if (indexDict == null || !indexDict.TryGetValue("warmers", out warmers) || warmers == null) - continue; - foreach (var kvW in warmers) - { - kvW.Value.Name = kvW.Key; - } - indices.Add(kv.Key, warmers); - } - - return new WarmerResponse - { - ConnectionStatus = connectionStatus, - IsValid = true, - Indices = indices - }; - } protected string GetSearchType(SearchDescriptorBase descriptor, MultiSearchDescriptor multiSearchDescriptor) { diff --git a/src/Nest/IElasticClient.cs b/src/Nest/IElasticClient.cs index 0d2b723dc17..40a950a2234 100644 --- a/src/Nest/IElasticClient.cs +++ b/src/Nest/IElasticClient.cs @@ -133,8 +133,8 @@ Task IndexAsync(T @object, Func, IndexDesc Task MultiGetAsync(Func multiGetSelector); FieldSelection SourceFields(Func, GetDescriptor> getSelector) where T : class; Task> SourceFieldsAsync(Func, GetDescriptor> getSelector) where T : class; - T Source(Func, GetDescriptor> getSelector) where T : class; - Task SourceAsync(Func, GetDescriptor> getSelector) where T : class; + T Source(Func, SourceDescriptor> getSelector) where T : class; + Task SourceAsync(Func, SourceDescriptor> getSelector) where T : class; IGetResponse Get(Func, GetDescriptor> getSelector) where T : class; Task> GetAsync(Func, GetDescriptor> getSelector) where T : class; IIndicesOperationResponse Alias(Func aliasSelector); diff --git a/src/Nest/Nest.csproj b/src/Nest/Nest.csproj index b66d9164e95..2e5391c6ff0 100644 --- a/src/Nest/Nest.csproj +++ b/src/Nest/Nest.csproj @@ -69,7 +69,7 @@ - ..\..\dep\Newtonsoft.Json.5.0.8\lib\net40\Newtonsoft.Json.dll + ..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll ..\..\dep\Purify - Preview\PUrify.dll @@ -155,6 +155,7 @@ + @@ -739,7 +740,9 @@ Elasticsearch.Net - + + + diff --git a/src/Nest/RawDispatch.generated.cs b/src/Nest/RawDispatch.generated.cs index b5c37d41439..8875308afca 100644 --- a/src/Nest/RawDispatch.generated.cs +++ b/src/Nest/RawDispatch.generated.cs @@ -18,32 +18,32 @@ internal partial class RawDispatch { - internal ElasticsearchResponse BulkDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse BulkDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Bulk(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Bulk(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Bulk(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Bulk(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_bulk if (body != null) - return this.Raw.Bulk(body,u => pathInfo.QueryString); + return this.Raw.Bulk(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.BulkPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.BulkPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkPut(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.BulkPut(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //PUT /_bulk if (body != null) - return this.Raw.BulkPut(body,u => pathInfo.QueryString); + return this.Raw.BulkPut(body,u => pathInfo.QueryString, deserializationState); break; } @@ -51,32 +51,32 @@ internal ElasticsearchResponse BulkDispatch(ElasticsearchPathInfo BulkDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> BulkDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.BulkAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.BulkAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.BulkAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_bulk if (body != null) - return this.Raw.BulkAsync(body,u => pathInfo.QueryString); + return this.Raw.BulkAsync(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.BulkPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.BulkPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkPutAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.BulkPutAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //PUT /_bulk if (body != null) - return this.Raw.BulkPutAsync(body,u => pathInfo.QueryString); + return this.Raw.BulkPutAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -84,362 +84,362 @@ internal Task BulkDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatAliasesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.CatAliases(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.CatAliases(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_cat/aliases - return this.Raw.CatAliases(u => pathInfo.QueryString); + return this.Raw.CatAliases(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatAliases() into any of the following paths: \r\n - /_cat/aliases\r\n - /_cat/aliases/{name}"); } - internal Task CatAliasesDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.CatAliasesAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.CatAliasesAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_cat/aliases - return this.Raw.CatAliasesAsync(u => pathInfo.QueryString); + return this.Raw.CatAliasesAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatAliases() into any of the following paths: \r\n - /_cat/aliases\r\n - /_cat/aliases/{name}"); } - internal ElasticsearchResponse CatAllocationDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatAllocationDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/allocation/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.CatAllocation(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.CatAllocation(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cat/allocation - return this.Raw.CatAllocation(u => pathInfo.QueryString); + return this.Raw.CatAllocation(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatAllocation() into any of the following paths: \r\n - /_cat/allocation\r\n - /_cat/allocation/{node_id}"); } - internal Task CatAllocationDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatAllocationDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/allocation/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.CatAllocationAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.CatAllocationAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cat/allocation - return this.Raw.CatAllocationAsync(u => pathInfo.QueryString); + return this.Raw.CatAllocationAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatAllocation() into any of the following paths: \r\n - /_cat/allocation\r\n - /_cat/allocation/{node_id}"); } - internal ElasticsearchResponse CatCountDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatCountDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/count/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatCount(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatCount(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/count - return this.Raw.CatCount(u => pathInfo.QueryString); + return this.Raw.CatCount(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatCount() into any of the following paths: \r\n - /_cat/count\r\n - /_cat/count/{index}"); } - internal Task CatCountDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatCountDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/count/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatCountAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatCountAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/count - return this.Raw.CatCountAsync(u => pathInfo.QueryString); + return this.Raw.CatCountAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatCount() into any of the following paths: \r\n - /_cat/count\r\n - /_cat/count/{index}"); } - internal ElasticsearchResponse CatHealthDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatHealthDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/health - return this.Raw.CatHealth(u => pathInfo.QueryString); + return this.Raw.CatHealth(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatHealth() into any of the following paths: \r\n - /_cat/health"); } - internal Task CatHealthDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatHealthDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/health - return this.Raw.CatHealthAsync(u => pathInfo.QueryString); + return this.Raw.CatHealthAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatHealth() into any of the following paths: \r\n - /_cat/health"); } - internal ElasticsearchResponse CatHelpDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatHelpDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat - return this.Raw.CatHelp(u => pathInfo.QueryString); + return this.Raw.CatHelp(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatHelp() into any of the following paths: \r\n - /_cat"); } - internal Task CatHelpDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatHelpDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat - return this.Raw.CatHelpAsync(u => pathInfo.QueryString); + return this.Raw.CatHelpAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatHelp() into any of the following paths: \r\n - /_cat"); } - internal ElasticsearchResponse CatIndicesDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatIndicesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/indices/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatIndices(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatIndices(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/indices - return this.Raw.CatIndices(u => pathInfo.QueryString); + return this.Raw.CatIndices(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatIndices() into any of the following paths: \r\n - /_cat/indices\r\n - /_cat/indices/{index}"); } - internal Task CatIndicesDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatIndicesDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/indices/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatIndicesAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatIndicesAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/indices - return this.Raw.CatIndicesAsync(u => pathInfo.QueryString); + return this.Raw.CatIndicesAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatIndices() into any of the following paths: \r\n - /_cat/indices\r\n - /_cat/indices/{index}"); } - internal ElasticsearchResponse CatMasterDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatMasterDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/master - return this.Raw.CatMaster(u => pathInfo.QueryString); + return this.Raw.CatMaster(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatMaster() into any of the following paths: \r\n - /_cat/master"); } - internal Task CatMasterDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatMasterDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/master - return this.Raw.CatMasterAsync(u => pathInfo.QueryString); + return this.Raw.CatMasterAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatMaster() into any of the following paths: \r\n - /_cat/master"); } - internal ElasticsearchResponse CatNodesDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatNodesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/nodes - return this.Raw.CatNodes(u => pathInfo.QueryString); + return this.Raw.CatNodes(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatNodes() into any of the following paths: \r\n - /_cat/nodes"); } - internal Task CatNodesDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatNodesDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/nodes - return this.Raw.CatNodesAsync(u => pathInfo.QueryString); + return this.Raw.CatNodesAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatNodes() into any of the following paths: \r\n - /_cat/nodes"); } - internal ElasticsearchResponse CatPendingTasksDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatPendingTasksDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/pending_tasks - return this.Raw.CatPendingTasks(u => pathInfo.QueryString); + return this.Raw.CatPendingTasks(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatPendingTasks() into any of the following paths: \r\n - /_cat/pending_tasks"); } - internal Task CatPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/pending_tasks - return this.Raw.CatPendingTasksAsync(u => pathInfo.QueryString); + return this.Raw.CatPendingTasksAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatPendingTasks() into any of the following paths: \r\n - /_cat/pending_tasks"); } - internal ElasticsearchResponse CatRecoveryDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatRecoveryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/recovery/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatRecovery(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatRecovery(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/recovery - return this.Raw.CatRecovery(u => pathInfo.QueryString); + return this.Raw.CatRecovery(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatRecovery() into any of the following paths: \r\n - /_cat/recovery\r\n - /_cat/recovery/{index}"); } - internal Task CatRecoveryDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatRecoveryDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/recovery/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatRecoveryAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatRecoveryAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/recovery - return this.Raw.CatRecoveryAsync(u => pathInfo.QueryString); + return this.Raw.CatRecoveryAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatRecovery() into any of the following paths: \r\n - /_cat/recovery\r\n - /_cat/recovery/{index}"); } - internal ElasticsearchResponse CatShardsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatShardsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/shards/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatShards(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatShards(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/shards - return this.Raw.CatShards(u => pathInfo.QueryString); + return this.Raw.CatShards(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatShards() into any of the following paths: \r\n - /_cat/shards\r\n - /_cat/shards/{index}"); } - internal Task CatShardsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatShardsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/shards/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatShardsAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CatShardsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cat/shards - return this.Raw.CatShardsAsync(u => pathInfo.QueryString); + return this.Raw.CatShardsAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatShards() into any of the following paths: \r\n - /_cat/shards\r\n - /_cat/shards/{index}"); } - internal ElasticsearchResponse CatThreadPoolDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse CatThreadPoolDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/thread_pool - return this.Raw.CatThreadPool(u => pathInfo.QueryString); + return this.Raw.CatThreadPool(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatThreadPool() into any of the following paths: \r\n - /_cat/thread_pool"); } - internal Task CatThreadPoolDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> CatThreadPoolDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/thread_pool - return this.Raw.CatThreadPoolAsync(u => pathInfo.QueryString); + return this.Raw.CatThreadPoolAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.CatThreadPool() into any of the following paths: \r\n - /_cat/thread_pool"); } - internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ClearScroll(pathInfo.ScrollId,u => pathInfo.QueryString); + return this.Raw.ClearScroll(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); break; } @@ -447,14 +447,14 @@ internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo ClearScrollDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClearScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ClearScrollAsync(pathInfo.ScrollId,u => pathInfo.QueryString); + return this.Raw.ClearScrollAsync(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); break; } @@ -462,98 +462,98 @@ internal Task ClearScrollDispatchAsync(ElasticsearchPathI } - internal ElasticsearchResponse ClusterGetSettingsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClusterGetSettingsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/settings - return this.Raw.ClusterGetSettings(u => pathInfo.QueryString); + return this.Raw.ClusterGetSettings(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterGetSettings() into any of the following paths: \r\n - /_cluster/settings"); } - internal Task ClusterGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClusterGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/settings - return this.Raw.ClusterGetSettingsAsync(u => pathInfo.QueryString); + return this.Raw.ClusterGetSettingsAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterGetSettings() into any of the following paths: \r\n - /_cluster/settings"); } - internal ElasticsearchResponse ClusterHealthDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClusterHealthDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/health/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterHealth(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.ClusterHealth(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cluster/health - return this.Raw.ClusterHealth(u => pathInfo.QueryString); + return this.Raw.ClusterHealth(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterHealth() into any of the following paths: \r\n - /_cluster/health\r\n - /_cluster/health/{index}"); } - internal Task ClusterHealthDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClusterHealthDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/health/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterHealthAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.ClusterHealthAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cluster/health - return this.Raw.ClusterHealthAsync(u => pathInfo.QueryString); + return this.Raw.ClusterHealthAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterHealth() into any of the following paths: \r\n - /_cluster/health\r\n - /_cluster/health/{index}"); } - internal ElasticsearchResponse ClusterPendingTasksDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClusterPendingTasksDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/pending_tasks - return this.Raw.ClusterPendingTasks(u => pathInfo.QueryString); + return this.Raw.ClusterPendingTasks(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterPendingTasks() into any of the following paths: \r\n - /_cluster/pending_tasks"); } - internal Task ClusterPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClusterPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/pending_tasks - return this.Raw.ClusterPendingTasksAsync(u => pathInfo.QueryString); + return this.Raw.ClusterPendingTasksAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterPendingTasks() into any of the following paths: \r\n - /_cluster/pending_tasks"); } - internal ElasticsearchResponse ClusterPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse ClusterPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_cluster/settings if (body != null) - return this.Raw.ClusterPutSettings(body,u => pathInfo.QueryString); + return this.Raw.ClusterPutSettings(body,u => pathInfo.QueryString, deserializationState); break; } @@ -561,14 +561,14 @@ internal ElasticsearchResponse ClusterPutSettingsDispatch(ElasticsearchPathInfo< } - internal Task ClusterPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> ClusterPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_cluster/settings if (body != null) - return this.Raw.ClusterPutSettingsAsync(body,u => pathInfo.QueryString); + return this.Raw.ClusterPutSettingsAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -576,14 +576,14 @@ internal Task ClusterPutSettingsDispatchAsync(Elasticsear } - internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/reroute if (body != null) - return this.Raw.ClusterReroute(body,u => pathInfo.QueryString); + return this.Raw.ClusterReroute(body,u => pathInfo.QueryString, deserializationState); break; } @@ -591,14 +591,14 @@ internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInfo ClusterRerouteDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> ClusterRerouteDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/reroute if (body != null) - return this.Raw.ClusterRerouteAsync(body,u => pathInfo.QueryString); + return this.Raw.ClusterRerouteAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -606,158 +606,158 @@ internal Task ClusterRerouteDispatchAsync(ElasticsearchPa } - internal ElasticsearchResponse ClusterStateDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClusterStateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/state/{metric}/{index} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterState(pathInfo.Metric,pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.ClusterState(pathInfo.Metric,pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cluster/state/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.ClusterState(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.ClusterState(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_cluster/state - return this.Raw.ClusterState(u => pathInfo.QueryString); + return this.Raw.ClusterState(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterState() into any of the following paths: \r\n - /_cluster/state\r\n - /_cluster/state/{metric}\r\n - /_cluster/state/{metric}/{index}"); } - internal Task ClusterStateDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClusterStateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/state/{metric}/{index} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterStateAsync(pathInfo.Metric,pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.ClusterStateAsync(pathInfo.Metric,pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cluster/state/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.ClusterStateAsync(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.ClusterStateAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_cluster/state - return this.Raw.ClusterStateAsync(u => pathInfo.QueryString); + return this.Raw.ClusterStateAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterState() into any of the following paths: \r\n - /_cluster/state\r\n - /_cluster/state/{metric}\r\n - /_cluster/state/{metric}/{index}"); } - internal ElasticsearchResponse ClusterStatsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ClusterStatsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/stats/nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.ClusterStats(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.ClusterStats(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cluster/stats - return this.Raw.ClusterStats(u => pathInfo.QueryString); + return this.Raw.ClusterStats(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterStats() into any of the following paths: \r\n - /_cluster/stats\r\n - /_cluster/stats/nodes/{node_id}"); } - internal Task ClusterStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ClusterStatsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/stats/nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.ClusterStatsAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.ClusterStatsAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cluster/stats - return this.Raw.ClusterStatsAsync(u => pathInfo.QueryString); + return this.Raw.ClusterStatsAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.ClusterStats() into any of the following paths: \r\n - /_cluster/stats\r\n - /_cluster/stats/nodes/{node_id}"); } - internal ElasticsearchResponse CountDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse CountDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/_count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Count(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Count(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_count if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Count(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Count(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_count if (body != null) - return this.Raw.Count(body,u => pathInfo.QueryString); + return this.Raw.Count(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.GET: //GET /{index}/{type}/_count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.CountGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_count if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CountGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CountGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_count - return this.Raw.CountGet(u => pathInfo.QueryString); + return this.Raw.CountGet(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Count() into any of the following paths: \r\n - /_count\r\n - /{index}/_count\r\n - /{index}/{type}/_count"); } - internal Task CountDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> CountDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/_count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.CountAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.CountAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_count if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.CountAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.CountAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_count if (body != null) - return this.Raw.CountAsync(body,u => pathInfo.QueryString); + return this.Raw.CountAsync(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.GET: //GET /{index}/{type}/_count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.CountGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_count if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CountGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.CountGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_count - return this.Raw.CountGetAsync(u => pathInfo.QueryString); + return this.Raw.CountGetAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Count() into any of the following paths: \r\n - /_count\r\n - /{index}/_count\r\n - /{index}/{type}/_count"); } - internal ElasticsearchResponse CountPercolateDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse CountPercolateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); //GET /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -765,26 +765,26 @@ internal ElasticsearchResponse CountPercolateDispatch(ElasticsearchPathInfo CountPercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> CountPercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); //GET /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -792,14 +792,14 @@ internal Task CountPercolateDispatchAsync(ElasticsearchPa } - internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.Delete(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.Delete(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -807,14 +807,14 @@ internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo DeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> DeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.DeleteAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.DeleteAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -822,17 +822,17 @@ internal Task DeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse DeleteByQueryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/_query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.DeleteByQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //DELETE /{index}/_query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQuery(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.DeleteByQuery(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; } @@ -840,17 +840,17 @@ internal ElasticsearchResponse DeleteByQueryDispatch(ElasticsearchPathInfo DeleteByQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> DeleteByQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/_query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.DeleteByQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //DELETE /{index}/_query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.DeleteByQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; } @@ -858,14 +858,14 @@ internal Task DeleteByQueryDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.Exists(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.Exists(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -873,14 +873,14 @@ internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo ExistsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> ExistsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.ExistsAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.ExistsAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -888,20 +888,20 @@ internal Task ExistsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse ExplainDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_explain if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.ExplainGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.ExplainGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_explain if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Explain(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Explain(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -909,20 +909,20 @@ internal ElasticsearchResponse ExplainDispatch(ElasticsearchPathInfo ExplainDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> ExplainDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_explain if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.ExplainGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.ExplainGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_explain if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.ExplainAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.ExplainAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -930,14 +930,14 @@ internal Task ExplainDispatchAsync(ElasticsearchPathInfo< } - internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.Get(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.Get(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -945,14 +945,14 @@ internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo } - internal Task GetDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> GetDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.GetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.GetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -960,14 +960,14 @@ internal Task GetDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse GetSourceDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_source if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.GetSource(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.GetSource(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -975,14 +975,14 @@ internal ElasticsearchResponse GetSourceDispatch(ElasticsearchPathInfo GetSourceDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> GetSourceDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_source if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.GetSourceAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.GetSourceAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; } @@ -990,26 +990,26 @@ internal Task GetSourceDispatchAsync(ElasticsearchPathInf } - internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Index(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Index(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Index(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Index(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1017,26 +1017,26 @@ internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo IndexDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndexDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/{id} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1044,24 +1044,24 @@ internal Task IndexDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesAnalyzeDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesAnalyzeGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_analyze - return this.Raw.IndicesAnalyzeGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeGetForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesAnalyze(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyze(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_analyze if (body != null) - return this.Raw.IndicesAnalyzeForAll(body,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeForAll(body,u => pathInfo.QueryString, deserializationState); break; } @@ -1069,24 +1069,24 @@ internal ElasticsearchResponse IndicesAnalyzeDispatch(ElasticsearchPathInfo IndicesAnalyzeDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesAnalyzeDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesAnalyzeGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_analyze - return this.Raw.IndicesAnalyzeGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeGetForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesAnalyzeAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_analyze if (body != null) - return this.Raw.IndicesAnalyzeForAllAsync(body,u => pathInfo.QueryString); + return this.Raw.IndicesAnalyzeForAllAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -1094,60 +1094,60 @@ internal Task IndicesAnalyzeDispatchAsync(ElasticsearchPa } - internal ElasticsearchResponse IndicesClearCacheDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesClearCacheDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCache(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesClearCache(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_cache/clear - return this.Raw.IndicesClearCacheForAll(u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cache/clear - return this.Raw.IndicesClearCacheGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheGetForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesClearCache() into any of the following paths: \r\n - /_cache/clear\r\n - /{index}/_cache/clear"); } - internal Task IndicesClearCacheDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesClearCacheDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_cache/clear - return this.Raw.IndicesClearCacheForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_cache/clear - return this.Raw.IndicesClearCacheGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesClearCacheGetForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesClearCache() into any of the following paths: \r\n - /_cache/clear\r\n - /{index}/_cache/clear"); } - internal ElasticsearchResponse IndicesCloseDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesCloseDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_close if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClose(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesClose(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1155,14 +1155,14 @@ internal ElasticsearchResponse IndicesCloseDispatch(ElasticsearchPathInfo IndicesCloseDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesCloseDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_close if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesCloseAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesCloseAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1170,20 +1170,20 @@ internal Task IndicesCloseDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreate(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesCreate(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreatePost(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesCreatePost(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1191,20 +1191,20 @@ internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo IndicesCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreateAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesCreateAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreatePostAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesCreatePostAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1212,14 +1212,14 @@ internal Task IndicesCreateDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesDelete(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesDelete(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1227,14 +1227,14 @@ internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo IndicesDeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesDeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesDeleteAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1242,14 +1242,14 @@ internal Task IndicesDeleteDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1257,14 +1257,14 @@ internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPathInfo< } - internal Task IndicesDeleteAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesDeleteAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1272,14 +1272,14 @@ internal Task IndicesDeleteAliasDispatchAsync(Elasticsear } - internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesDeleteMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; } @@ -1287,14 +1287,14 @@ internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchPathInf } - internal Task IndicesDeleteMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesDeleteMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesDeleteMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; } @@ -1302,14 +1302,14 @@ internal Task IndicesDeleteMappingDispatchAsync(Elasticse } - internal ElasticsearchResponse IndicesDeleteTemplateDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesDeleteTemplateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteTemplateForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1317,14 +1317,14 @@ internal ElasticsearchResponse IndicesDeleteTemplateDispatch(ElasticsearchPathIn } - internal Task IndicesDeleteTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesDeleteTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1332,14 +1332,14 @@ internal Task IndicesDeleteTemplateDispatchAsync(Elastics } - internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1347,14 +1347,14 @@ internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPathInfo } - internal Task IndicesDeleteWarmerDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesDeleteWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesDeleteWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1362,14 +1362,14 @@ internal Task IndicesDeleteWarmerDispatchAsync(Elasticsea } - internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExists(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesExists(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1377,14 +1377,14 @@ internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo IndicesExistsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesExistsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1392,20 +1392,20 @@ internal Task IndicesExistsDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //HEAD /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAliasForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //HEAD /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAlias(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAlias(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1413,20 +1413,20 @@ internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPathInfo< } - internal Task IndicesExistsAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesExistsAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //HEAD /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //HEAD /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1434,14 +1434,14 @@ internal Task IndicesExistsAliasDispatchAsync(Elasticsear } - internal ElasticsearchResponse IndicesExistsTemplateDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesExistsTemplateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsTemplateForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1449,14 +1449,14 @@ internal ElasticsearchResponse IndicesExistsTemplateDispatch(ElasticsearchPathIn } - internal Task IndicesExistsTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesExistsTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesExistsTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); break; } @@ -1464,14 +1464,14 @@ internal Task IndicesExistsTemplateDispatchAsync(Elastics } - internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesExistsType(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesExistsType(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; } @@ -1479,14 +1479,14 @@ internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPathInfo IndicesExistsTypeDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesExistsTypeDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesExistsTypeAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesExistsTypeAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; } @@ -1494,157 +1494,157 @@ internal Task IndicesExistsTypeDispatchAsync(Elasticsearc } - internal ElasticsearchResponse IndicesFlushDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesFlushDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlush(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesFlush(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_flush - return this.Raw.IndicesFlushForAll(u => pathInfo.QueryString); + return this.Raw.IndicesFlushForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesFlushGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_flush - return this.Raw.IndicesFlushGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesFlushGetForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesFlush() into any of the following paths: \r\n - /_flush\r\n - /{index}/_flush"); } - internal Task IndicesFlushDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesFlushDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesFlushAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_flush - return this.Raw.IndicesFlushForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesFlushForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesFlushGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_flush - return this.Raw.IndicesFlushGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesFlushGetForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesFlush() into any of the following paths: \r\n - /_flush\r\n - /{index}/_flush"); } - internal ElasticsearchResponse IndicesGetAliasDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetAliasDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAlias(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetAlias(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_alias - return this.Raw.IndicesGetAliasForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetAlias() into any of the following paths: \r\n - /_alias\r\n - /_alias/{name}\r\n - /{index}/_alias/{name}\r\n - /{index}/_alias"); } - internal Task IndicesGetAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_alias - return this.Raw.IndicesGetAliasForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetAlias() into any of the following paths: \r\n - /_alias\r\n - /_alias/{name}\r\n - /{index}/_alias/{name}\r\n - /{index}/_alias"); } - internal ElasticsearchResponse IndicesGetAliasesDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetAliasesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_aliases/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliases(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliases(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_aliases if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliases(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliases(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_aliases - return this.Raw.IndicesGetAliasesForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetAliases() into any of the following paths: \r\n - /_aliases\r\n - /{index}/_aliases\r\n - /{index}/_aliases/{name}\r\n - /_aliases/{name}"); } - internal Task IndicesGetAliasesDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_aliases/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_aliases if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_aliases - return this.Raw.IndicesGetAliasesForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetAliasesForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetAliases() into any of the following paths: \r\n - /_aliases\r\n - /{index}/_aliases\r\n - /{index}/_aliases/{name}\r\n - /_aliases/{name}"); } - internal ElasticsearchResponse IndicesGetFieldMappingDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetFieldMappingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_mapping/{type}/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mapping/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /_mapping/{type}/field/{field} if (!pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /_mapping/field/{field} if (!pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Field,u => pathInfo.QueryString, deserializationState); break; } @@ -1652,23 +1652,23 @@ internal ElasticsearchResponse IndicesGetFieldMappingDispatch(ElasticsearchPathI } - internal Task IndicesGetFieldMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetFieldMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_mapping/{type}/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mapping/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /_mapping/{type}/field/{field} if (!pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); //GET /_mapping/field/{field} if (!pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Field,u => pathInfo.QueryString); + return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Field,u => pathInfo.QueryString, deserializationState); break; } @@ -1676,184 +1676,184 @@ internal Task IndicesGetFieldMappingDispatchAsync(Elastic } - internal ElasticsearchResponse IndicesGetMappingDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetMappingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_mapping/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesGetMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mapping if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetMapping(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetMapping(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingForAll(pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingForAll(pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /_mapping - return this.Raw.IndicesGetMappingForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetMapping() into any of the following paths: \r\n - /_mapping\r\n - /{index}/_mapping\r\n - /_mapping/{type}\r\n - /{index}/_mapping/{type}"); } - internal Task IndicesGetMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_mapping/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mapping if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingForAllAsync(pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingForAllAsync(pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /_mapping - return this.Raw.IndicesGetMappingForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetMappingForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetMapping() into any of the following paths: \r\n - /_mapping\r\n - /{index}/_mapping\r\n - /_mapping/{type}\r\n - /{index}/_mapping/{type}"); } - internal ElasticsearchResponse IndicesGetSettingsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetSettingsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_settings/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettings(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettings(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetSettings(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettings(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_settings/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_settings - return this.Raw.IndicesGetSettingsForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetSettings() into any of the following paths: \r\n - /_settings\r\n - /{index}/_settings\r\n - /{index}/_settings/{name}\r\n - /_settings/{name}"); } - internal Task IndicesGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_settings/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_settings/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_settings - return this.Raw.IndicesGetSettingsForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetSettingsForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetSettings() into any of the following paths: \r\n - /_settings\r\n - /{index}/_settings\r\n - /{index}/_settings/{name}\r\n - /_settings/{name}"); } - internal ElasticsearchResponse IndicesGetTemplateDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetTemplateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetTemplateForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_template - return this.Raw.IndicesGetTemplateForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetTemplateForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetTemplate() into any of the following paths: \r\n - /_template\r\n - /_template/{name}"); } - internal Task IndicesGetTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_template - return this.Raw.IndicesGetTemplateForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetTemplateForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetTemplate() into any of the following paths: \r\n - /_template\r\n - /_template/{name}"); } - internal ElasticsearchResponse IndicesGetWarmerDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesGetWarmerDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_warmer if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmer(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmer(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerForAll(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_warmer - return this.Raw.IndicesGetWarmerForAll(u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetWarmer() into any of the following paths: \r\n - /_warmer\r\n - /{index}/_warmer\r\n - /{index}/_warmer/{name}\r\n - /_warmer/{name}\r\n - /{index}/{type}/_warmer/{name}"); } - internal Task IndicesGetWarmerDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesGetWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /{index}/_warmer if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerForAllAsync(pathInfo.Name,u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); //GET /_warmer - return this.Raw.IndicesGetWarmerForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesGetWarmerForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesGetWarmer() into any of the following paths: \r\n - /_warmer\r\n - /{index}/_warmer\r\n - /{index}/_warmer/{name}\r\n - /_warmer/{name}\r\n - /{index}/{type}/_warmer/{name}"); } - internal ElasticsearchResponse IndicesOpenDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesOpenDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_open if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOpen(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOpen(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1861,14 +1861,14 @@ internal ElasticsearchResponse IndicesOpenDispatch(ElasticsearchPathInfo IndicesOpenDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesOpenDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_open if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOpenAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOpenAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); break; } @@ -1876,72 +1876,72 @@ internal Task IndicesOpenDispatchAsync(ElasticsearchPathI } - internal ElasticsearchResponse IndicesOptimizeDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesOptimizeDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimize(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOptimize(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_optimize - return this.Raw.IndicesOptimizeForAll(u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_optimize - return this.Raw.IndicesOptimizeGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeGetForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesOptimize() into any of the following paths: \r\n - /_optimize\r\n - /{index}/_optimize"); } - internal Task IndicesOptimizeDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesOptimizeDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_optimize - return this.Raw.IndicesOptimizeForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_optimize - return this.Raw.IndicesOptimizeGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesOptimizeGetForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesOptimize() into any of the following paths: \r\n - /_optimize\r\n - /{index}/_optimize"); } - internal ElasticsearchResponse IndicesPutAliasDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesPutAliasDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAlias(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAlias(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPostForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasPostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1949,26 +1949,26 @@ internal ElasticsearchResponse IndicesPutAliasDispatch(ElasticsearchPathInfo IndicesPutAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesPutAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/_alias/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutAliasPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -1976,26 +1976,26 @@ internal Task IndicesPutAliasDispatchAsync(ElasticsearchP } - internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMapping(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMapping(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //PUT /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingForAll(pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingForAll(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPost(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingPost(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPostForAll(pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingPostForAll(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2003,26 +2003,26 @@ internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPathInfo

IndicesPutMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesPutMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //PUT /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mapping if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPostAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingPostAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPostForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutMappingPostForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2030,17 +2030,17 @@ internal Task IndicesPutMappingDispatchAsync(Elasticsearc } - internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutSettings(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutSettings(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //PUT /_settings if (body != null) - return this.Raw.IndicesPutSettingsForAll(body,u => pathInfo.QueryString); + return this.Raw.IndicesPutSettingsForAll(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2048,17 +2048,17 @@ internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPathInfo< } - internal Task IndicesPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutSettingsAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutSettingsAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //PUT /_settings if (body != null) - return this.Raw.IndicesPutSettingsForAllAsync(body,u => pathInfo.QueryString); + return this.Raw.IndicesPutSettingsForAllAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2066,20 +2066,20 @@ internal Task IndicesPutSettingsDispatchAsync(Elasticsear } - internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplateForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutTemplateForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplatePostForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutTemplatePostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2087,20 +2087,20 @@ internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPathInfo< } - internal Task IndicesPutTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesPutTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplateForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutTemplateForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplatePostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutTemplatePostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2108,32 +2108,32 @@ internal Task IndicesPutTemplateDispatchAsync(Elasticsear } - internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostForAll(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2141,32 +2141,32 @@ internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathInfo IndicesPutWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesPutWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //PUT /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); //POST /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString); + return this.Raw.IndicesPutWarmerPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2174,200 +2174,200 @@ internal Task IndicesPutWarmerDispatchAsync(Elasticsearch } - internal ElasticsearchResponse IndicesRefreshDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesRefreshDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefresh(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesRefresh(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_refresh - return this.Raw.IndicesRefreshForAll(u => pathInfo.QueryString); + return this.Raw.IndicesRefreshForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesRefreshGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_refresh - return this.Raw.IndicesRefreshGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesRefreshGetForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesRefresh() into any of the following paths: \r\n - /_refresh\r\n - /{index}/_refresh"); } - internal Task IndicesRefreshDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesRefreshDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesRefreshAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_refresh - return this.Raw.IndicesRefreshForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesRefreshForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.GET: //GET /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesRefreshGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_refresh - return this.Raw.IndicesRefreshGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesRefreshGetForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesRefresh() into any of the following paths: \r\n - /_refresh\r\n - /{index}/_refresh"); } - internal ElasticsearchResponse IndicesSegmentsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesSegmentsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_segments if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSegments(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesSegments(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_segments - return this.Raw.IndicesSegmentsForAll(u => pathInfo.QueryString); + return this.Raw.IndicesSegmentsForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesSegments() into any of the following paths: \r\n - /_segments\r\n - /{index}/_segments"); } - internal Task IndicesSegmentsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesSegmentsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_segments if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSegmentsAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesSegmentsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_segments - return this.Raw.IndicesSegmentsForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesSegmentsForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesSegments() into any of the following paths: \r\n - /_segments\r\n - /{index}/_segments"); } - internal ElasticsearchResponse IndicesSnapshotIndexDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesSnapshotIndexDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_gateway/snapshot if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSnapshotIndex(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesSnapshotIndex(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_gateway/snapshot - return this.Raw.IndicesSnapshotIndexForAll(u => pathInfo.QueryString); + return this.Raw.IndicesSnapshotIndexForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesSnapshotIndex() into any of the following paths: \r\n - /_gateway/snapshot\r\n - /{index}/_gateway/snapshot"); } - internal Task IndicesSnapshotIndexDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesSnapshotIndexDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_gateway/snapshot if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSnapshotIndexAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesSnapshotIndexAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //POST /_gateway/snapshot - return this.Raw.IndicesSnapshotIndexForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesSnapshotIndexForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesSnapshotIndex() into any of the following paths: \r\n - /_gateway/snapshot\r\n - /{index}/_gateway/snapshot"); } - internal ElasticsearchResponse IndicesStatsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesStatsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_stats/{metric} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStats(pathInfo.Index,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.IndicesStats(pathInfo.Index,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.IndicesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /{index}/_stats if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStats(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesStats(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_stats - return this.Raw.IndicesStatsForAll(u => pathInfo.QueryString); + return this.Raw.IndicesStatsForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesStats() into any of the following paths: \r\n - /_stats\r\n - /_stats/{metric}\r\n - /{index}/_stats\r\n - /{index}/_stats/{metric}"); } - internal Task IndicesStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesStatsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_stats/{metric} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStatsAsync(pathInfo.Index,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.IndicesStatsAsync(pathInfo.Index,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.IndicesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /{index}/_stats if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatsAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesStatsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_stats - return this.Raw.IndicesStatsForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesStatsForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesStats() into any of the following paths: \r\n - /_stats\r\n - /_stats/{metric}\r\n - /{index}/_stats\r\n - /{index}/_stats/{metric}"); } - internal ElasticsearchResponse IndicesStatusDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse IndicesStatusDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_status if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatus(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesStatus(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_status - return this.Raw.IndicesStatusForAll(u => pathInfo.QueryString); + return this.Raw.IndicesStatusForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesStatus() into any of the following paths: \r\n - /_status\r\n - /{index}/_status"); } - internal Task IndicesStatusDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> IndicesStatusDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_status if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatusAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesStatusAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_status - return this.Raw.IndicesStatusForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesStatusForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.IndicesStatus() into any of the following paths: \r\n - /_status\r\n - /{index}/_status"); } - internal ElasticsearchResponse IndicesUpdateAliasesDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesUpdateAliasesDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_aliases if (body != null) - return this.Raw.IndicesUpdateAliasesForAll(body,u => pathInfo.QueryString); + return this.Raw.IndicesUpdateAliasesForAll(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2375,14 +2375,14 @@ internal ElasticsearchResponse IndicesUpdateAliasesDispatch(ElasticsearchPathInf } - internal Task IndicesUpdateAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesUpdateAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_aliases if (body != null) - return this.Raw.IndicesUpdateAliasesForAllAsync(body,u => pathInfo.QueryString); + return this.Raw.IndicesUpdateAliasesForAllAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2390,30 +2390,30 @@ internal Task IndicesUpdateAliasesDispatchAsync(Elasticse } - internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_validate/query - return this.Raw.IndicesValidateQueryGetForAll(u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGetForAll(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQuery(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQuery(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_validate/query if (body != null) - return this.Raw.IndicesValidateQueryForAll(body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryForAll(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2421,30 +2421,30 @@ internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchPathInf } - internal Task IndicesValidateQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> IndicesValidateQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_validate/query - return this.Raw.IndicesValidateQueryGetForAllAsync(u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryGetForAllAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_validate/query if (body != null) - return this.Raw.IndicesValidateQueryForAllAsync(body,u => pathInfo.QueryString); + return this.Raw.IndicesValidateQueryForAllAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2452,56 +2452,56 @@ internal Task IndicesValidateQueryDispatchAsync(Elasticse } - internal ElasticsearchResponse InfoDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse InfoDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET / - return this.Raw.Info(u => pathInfo.QueryString); + return this.Raw.Info(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Info() into any of the following paths: \r\n - /"); } - internal Task InfoDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> InfoDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET / - return this.Raw.InfoAsync(u => pathInfo.QueryString); + return this.Raw.InfoAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Info() into any of the following paths: \r\n - /"); } - internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mget if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MgetGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MgetGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MgetGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MgetGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mget - return this.Raw.MgetGet(u => pathInfo.QueryString); + return this.Raw.MgetGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mget if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Mget(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Mget(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mget(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Mget(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mget if (body != null) - return this.Raw.Mget(body,u => pathInfo.QueryString); + return this.Raw.Mget(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2509,30 +2509,30 @@ internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo MgetDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> MgetDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mget if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MgetGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MgetGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MgetGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MgetGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mget - return this.Raw.MgetGetAsync(u => pathInfo.QueryString); + return this.Raw.MgetGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mget if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.MgetAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.MgetAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MgetAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.MgetAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mget if (body != null) - return this.Raw.MgetAsync(body,u => pathInfo.QueryString); + return this.Raw.MgetAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2540,20 +2540,20 @@ internal Task MgetDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse MltDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_mlt if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.MltGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.MltGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_mlt if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Mlt(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Mlt(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2561,20 +2561,20 @@ internal ElasticsearchResponse MltDispatch(ElasticsearchPathInfo MltDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> MltDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_mlt if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.MltGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.MltGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_mlt if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.MltAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.MltAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2582,30 +2582,30 @@ internal Task MltDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse MpercolateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MpercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MpercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MpercolateGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MpercolateGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mpercolate - return this.Raw.MpercolateGet(u => pathInfo.QueryString); + return this.Raw.MpercolateGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Mpercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Mpercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mpercolate(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Mpercolate(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mpercolate if (body != null) - return this.Raw.Mpercolate(body,u => pathInfo.QueryString); + return this.Raw.Mpercolate(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2613,30 +2613,30 @@ internal ElasticsearchResponse MpercolateDispatch(ElasticsearchPathInfo MpercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> MpercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MpercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MpercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MpercolateGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MpercolateGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mpercolate - return this.Raw.MpercolateGetAsync(u => pathInfo.QueryString); + return this.Raw.MpercolateGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.MpercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.MpercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MpercolateAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.MpercolateAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mpercolate if (body != null) - return this.Raw.MpercolateAsync(body,u => pathInfo.QueryString); + return this.Raw.MpercolateAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2644,30 +2644,30 @@ internal Task MpercolateDispatchAsync(ElasticsearchPathIn } - internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MsearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MsearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MsearchGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MsearchGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_msearch - return this.Raw.MsearchGet(u => pathInfo.QueryString); + return this.Raw.MsearchGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Msearch(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Msearch(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Msearch(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Msearch(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_msearch if (body != null) - return this.Raw.Msearch(body,u => pathInfo.QueryString); + return this.Raw.Msearch(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2675,30 +2675,30 @@ internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo MsearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> MsearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MsearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MsearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MsearchGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MsearchGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_msearch - return this.Raw.MsearchGetAsync(u => pathInfo.QueryString); + return this.Raw.MsearchGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.MsearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.MsearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MsearchAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.MsearchAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_msearch if (body != null) - return this.Raw.MsearchAsync(body,u => pathInfo.QueryString); + return this.Raw.MsearchAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2706,30 +2706,30 @@ internal Task MsearchDispatchAsync(ElasticsearchPathInfo< } - internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MtermvectorsGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MtermvectorsGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MtermvectorsGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MtermvectorsGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mtermvectors - return this.Raw.MtermvectorsGet(u => pathInfo.QueryString); + return this.Raw.MtermvectorsGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Mtermvectors(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Mtermvectors(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mtermvectors(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Mtermvectors(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mtermvectors if (body != null) - return this.Raw.Mtermvectors(body,u => pathInfo.QueryString); + return this.Raw.Mtermvectors(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2737,30 +2737,30 @@ internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo MtermvectorsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> MtermvectorsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.MtermvectorsGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.MtermvectorsGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MtermvectorsGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.MtermvectorsGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_mtermvectors - return this.Raw.MtermvectorsGetAsync(u => pathInfo.QueryString); + return this.Raw.MtermvectorsGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.MtermvectorsAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.MtermvectorsAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MtermvectorsAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.MtermvectorsAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_mtermvectors if (body != null) - return this.Raw.MtermvectorsAsync(body,u => pathInfo.QueryString); + return this.Raw.MtermvectorsAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -2768,190 +2768,190 @@ internal Task MtermvectorsDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse NodesHotThreadsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse NodesHotThreadsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/nodes/{node_id}/hotthreads if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesHotThreads(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesHotThreads(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cluster/nodes/hotthreads - return this.Raw.NodesHotThreadsForAll(u => pathInfo.QueryString); + return this.Raw.NodesHotThreadsForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesHotThreads() into any of the following paths: \r\n - /_cluster/nodes/hotthreads\r\n - /_cluster/nodes/hot_threads\r\n - /_cluster/nodes/{node_id}/hotthreads\r\n - /_cluster/nodes/{node_id}/hot_threads\r\n - /_nodes/hotthreads\r\n - /_nodes/hot_threads\r\n - /_nodes/{node_id}/hotthreads\r\n - /_nodes/{node_id}/hot_threads"); } - internal Task NodesHotThreadsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> NodesHotThreadsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/nodes/{node_id}/hotthreads if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesHotThreadsAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesHotThreadsAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_cluster/nodes/hotthreads - return this.Raw.NodesHotThreadsForAllAsync(u => pathInfo.QueryString); + return this.Raw.NodesHotThreadsForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesHotThreads() into any of the following paths: \r\n - /_cluster/nodes/hotthreads\r\n - /_cluster/nodes/hot_threads\r\n - /_cluster/nodes/{node_id}/hotthreads\r\n - /_cluster/nodes/{node_id}/hot_threads\r\n - /_nodes/hotthreads\r\n - /_nodes/hot_threads\r\n - /_nodes/{node_id}/hotthreads\r\n - /_nodes/{node_id}/hot_threads"); } - internal ElasticsearchResponse NodesInfoDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse NodesInfoDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_nodes/{node_id}/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfo(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesInfo(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesInfo(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesInfo(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfoForAll(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesInfoForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes - return this.Raw.NodesInfoForAll(u => pathInfo.QueryString); + return this.Raw.NodesInfoForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesInfo() into any of the following paths: \r\n - /_nodes\r\n - /_nodes/{node_id}\r\n - /_nodes/{metric}\r\n - /_nodes/{node_id}/{metric}"); } - internal Task NodesInfoDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> NodesInfoDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_nodes/{node_id}/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfoAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesInfoAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesInfoAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesInfoAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfoForAllAsync(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesInfoForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes - return this.Raw.NodesInfoForAllAsync(u => pathInfo.QueryString); + return this.Raw.NodesInfoForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesInfo() into any of the following paths: \r\n - /_nodes\r\n - /_nodes/{node_id}\r\n - /_nodes/{metric}\r\n - /_nodes/{node_id}/{metric}"); } - internal ElasticsearchResponse NodesShutdownDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse NodesShutdownDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/nodes/{node_id}/_shutdown if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesShutdown(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesShutdown(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //POST /_shutdown - return this.Raw.NodesShutdownForAll(u => pathInfo.QueryString); + return this.Raw.NodesShutdownForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesShutdown() into any of the following paths: \r\n - /_shutdown\r\n - /_cluster/nodes/_shutdown\r\n - /_cluster/nodes/{node_id}/_shutdown"); } - internal Task NodesShutdownDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> NodesShutdownDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/nodes/{node_id}/_shutdown if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesShutdownAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesShutdownAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //POST /_shutdown - return this.Raw.NodesShutdownForAllAsync(u => pathInfo.QueryString); + return this.Raw.NodesShutdownForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesShutdown() into any of the following paths: \r\n - /_shutdown\r\n - /_cluster/nodes/_shutdown\r\n - /_cluster/nodes/{node_id}/_shutdown"); } - internal ElasticsearchResponse NodesStatsDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse NodesStatsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_nodes/{node_id}/stats/{metric}/{index_metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString); + return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id}/stats/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats/{metric}/{index_metric} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAll(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString); + return this.Raw.NodesStatsForAll(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id}/stats if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesStats(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesStats(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats - return this.Raw.NodesStatsForAll(u => pathInfo.QueryString); + return this.Raw.NodesStatsForAll(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesStats() into any of the following paths: \r\n - /_nodes/stats\r\n - /_nodes/{node_id}/stats\r\n - /_nodes/stats/{metric}\r\n - /_nodes/{node_id}/stats/{metric}\r\n - /_nodes/stats/{metric}/{index_metric}\r\n - /_nodes/{node_id}/stats/{metric}/{index_metric}"); } - internal Task NodesStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> NodesStatsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_nodes/{node_id}/stats/{metric}/{index_metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id}/stats/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats/{metric}/{index_metric} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString); + return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/{node_id}/stats if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesStatsAsync(pathInfo.NodeId,u => pathInfo.QueryString); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString); + return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); //GET /_nodes/stats - return this.Raw.NodesStatsForAllAsync(u => pathInfo.QueryString); + return this.Raw.NodesStatsForAllAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.NodesStats() into any of the following paths: \r\n - /_nodes/stats\r\n - /_nodes/{node_id}/stats\r\n - /_nodes/stats/{metric}\r\n - /_nodes/{node_id}/stats/{metric}\r\n - /_nodes/stats/{metric}/{index_metric}\r\n - /_nodes/{node_id}/stats/{metric}/{index_metric}"); } - internal ElasticsearchResponse PercolateDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse PercolateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); //GET /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2959,26 +2959,26 @@ internal ElasticsearchResponse PercolateDispatch(ElasticsearchPathInfo PercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> PercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); //GET /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); break; } @@ -2986,50 +2986,50 @@ internal Task PercolateDispatchAsync(ElasticsearchPathInf } - internal ElasticsearchResponse PingDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse PingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD / - return this.Raw.Ping(u => pathInfo.QueryString); + return this.Raw.Ping(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Ping() into any of the following paths: \r\n - /"); } - internal Task PingDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> PingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD / - return this.Raw.PingAsync(u => pathInfo.QueryString); + return this.Raw.PingAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Ping() into any of the following paths: \r\n - /"); } - internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ScrollGet(pathInfo.ScrollId,u => pathInfo.QueryString); + return this.Raw.ScrollGet(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); //GET /_search/scroll - return this.Raw.ScrollGet(u => pathInfo.QueryString); + return this.Raw.ScrollGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty() && body != null) - return this.Raw.Scroll(pathInfo.ScrollId,body,u => pathInfo.QueryString); + return this.Raw.Scroll(pathInfo.ScrollId,body,u => pathInfo.QueryString, deserializationState); //POST /_search/scroll if (body != null) - return this.Raw.Scroll(body,u => pathInfo.QueryString); + return this.Raw.Scroll(body,u => pathInfo.QueryString, deserializationState); break; } @@ -3037,24 +3037,24 @@ internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo ScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> ScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ScrollGetAsync(pathInfo.ScrollId,u => pathInfo.QueryString); + return this.Raw.ScrollGetAsync(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); //GET /_search/scroll - return this.Raw.ScrollGetAsync(u => pathInfo.QueryString); + return this.Raw.ScrollGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty() && body != null) - return this.Raw.ScrollAsync(pathInfo.ScrollId,body,u => pathInfo.QueryString); + return this.Raw.ScrollAsync(pathInfo.ScrollId,body,u => pathInfo.QueryString, deserializationState); //POST /_search/scroll if (body != null) - return this.Raw.ScrollAsync(body,u => pathInfo.QueryString); + return this.Raw.ScrollAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -3062,30 +3062,30 @@ internal Task ScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse SearchDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_search if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.SearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.SearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_search if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SearchGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.SearchGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_search - return this.Raw.SearchGet(u => pathInfo.QueryString); + return this.Raw.SearchGet(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_search if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Search(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.Search(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_search if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Search(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Search(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_search if (body != null) - return this.Raw.Search(body,u => pathInfo.QueryString); + return this.Raw.Search(body,u => pathInfo.QueryString, deserializationState); break; } @@ -3093,30 +3093,30 @@ internal ElasticsearchResponse SearchDispatch(ElasticsearchPathInfo SearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> SearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/_search if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.SearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString); + return this.Raw.SearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); //GET /{index}/_search if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SearchGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.SearchGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_search - return this.Raw.SearchGetAsync(u => pathInfo.QueryString); + return this.Raw.SearchGetAsync(u => pathInfo.QueryString, deserializationState); case PathInfoHttpMethod.POST: //POST /{index}/{type}/_search if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.SearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString); + return this.Raw.SearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); //POST /{index}/_search if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.SearchAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.SearchAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_search if (body != null) - return this.Raw.SearchAsync(body,u => pathInfo.QueryString); + return this.Raw.SearchAsync(body,u => pathInfo.QueryString, deserializationState); break; } @@ -3124,20 +3124,20 @@ internal Task SearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse SnapshotCreateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreate(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreate(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreatePost(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreatePost(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3145,20 +3145,20 @@ internal ElasticsearchResponse SnapshotCreateDispatch(ElasticsearchPathInfo SnapshotCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> SnapshotCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreateAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreatePostAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreatePostAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3166,20 +3166,20 @@ internal Task SnapshotCreateDispatchAsync(ElasticsearchPa } - internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepository(pathInfo.Repository,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreateRepository(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepositoryPost(pathInfo.Repository,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreateRepositoryPost(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3187,20 +3187,20 @@ internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(ElasticsearchPat } - internal Task SnapshotCreateRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> SnapshotCreateRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepositoryAsync(pathInfo.Repository,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreateRepositoryAsync(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepositoryPostAsync(pathInfo.Repository,body,u => pathInfo.QueryString); + return this.Raw.SnapshotCreateRepositoryPostAsync(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3208,14 +3208,14 @@ internal Task SnapshotCreateRepositoryDispatchAsync(Elast } - internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty()) - return this.Raw.SnapshotDelete(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString); + return this.Raw.SnapshotDelete(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString, deserializationState); break; } @@ -3223,14 +3223,14 @@ internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInfo SnapshotDeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> SnapshotDeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty()) - return this.Raw.SnapshotDeleteAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString); + return this.Raw.SnapshotDeleteAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString, deserializationState); break; } @@ -3238,14 +3238,14 @@ internal Task SnapshotDeleteDispatchAsync(ElasticsearchPa } - internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotDeleteRepository(pathInfo.Repository,u => pathInfo.QueryString); + return this.Raw.SnapshotDeleteRepository(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); break; } @@ -3253,14 +3253,14 @@ internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(ElasticsearchPat } - internal Task SnapshotDeleteRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> SnapshotDeleteRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotDeleteRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString); + return this.Raw.SnapshotDeleteRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); break; } @@ -3268,14 +3268,14 @@ internal Task SnapshotDeleteRepositoryDispatchAsync(Elast } - internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty()) - return this.Raw.SnapshotGet(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString); + return this.Raw.SnapshotGet(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString, deserializationState); break; } @@ -3283,14 +3283,14 @@ internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo SnapshotGetDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> SnapshotGetDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository}/{snapshot} if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty()) - return this.Raw.SnapshotGetAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString); + return this.Raw.SnapshotGetAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.QueryString, deserializationState); break; } @@ -3298,46 +3298,46 @@ internal Task SnapshotGetDispatchAsync(ElasticsearchPathI } - internal ElasticsearchResponse SnapshotGetRepositoryDispatch(ElasticsearchPathInfo pathInfo ) + internal ElasticsearchResponse SnapshotGetRepositoryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotGetRepository(pathInfo.Repository,u => pathInfo.QueryString); + return this.Raw.SnapshotGetRepository(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); //GET /_snapshot - return this.Raw.SnapshotGetRepository(u => pathInfo.QueryString); + return this.Raw.SnapshotGetRepository(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.SnapshotGetRepository() into any of the following paths: \r\n - /_snapshot\r\n - /_snapshot/{repository}"); } - internal Task SnapshotGetRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo ) + internal Task> SnapshotGetRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotGetRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString); + return this.Raw.SnapshotGetRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); //GET /_snapshot - return this.Raw.SnapshotGetRepositoryAsync(u => pathInfo.QueryString); + return this.Raw.SnapshotGetRepositoryAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.SnapshotGetRepository() into any of the following paths: \r\n - /_snapshot\r\n - /_snapshot/{repository}"); } - internal ElasticsearchResponse SnapshotRestoreDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse SnapshotRestoreDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_snapshot/{repository}/{snapshot}/_restore if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotRestore(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotRestore(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3345,14 +3345,14 @@ internal ElasticsearchResponse SnapshotRestoreDispatch(ElasticsearchPathInfo SnapshotRestoreDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> SnapshotRestoreDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_snapshot/{repository}/{snapshot}/_restore if (!pathInfo.Repository.IsNullOrEmpty() && !pathInfo.Snapshot.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotRestoreAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString); + return this.Raw.SnapshotRestoreAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3360,70 +3360,70 @@ internal Task SnapshotRestoreDispatchAsync(ElasticsearchP } - internal ElasticsearchResponse SuggestDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse SuggestDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Suggest(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.Suggest(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_suggest if (body != null) - return this.Raw.Suggest(body,u => pathInfo.QueryString); + return this.Raw.Suggest(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.GET: //GET /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SuggestGet(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.SuggestGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_suggest - return this.Raw.SuggestGet(u => pathInfo.QueryString); + return this.Raw.SuggestGet(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Suggest() into any of the following paths: \r\n - /_suggest\r\n - /{index}/_suggest"); } - internal Task SuggestDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> SuggestDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.SuggestAsync(pathInfo.Index,body,u => pathInfo.QueryString); + return this.Raw.SuggestAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); //POST /_suggest if (body != null) - return this.Raw.SuggestAsync(body,u => pathInfo.QueryString); + return this.Raw.SuggestAsync(body,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.GET: //GET /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SuggestGetAsync(pathInfo.Index,u => pathInfo.QueryString); + return this.Raw.SuggestGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); //GET /_suggest - return this.Raw.SuggestGetAsync(u => pathInfo.QueryString); + return this.Raw.SuggestGetAsync(u => pathInfo.QueryString, deserializationState); } throw new DispatchException("Could not dispatch IElasticClient.Suggest() into any of the following paths: \r\n - /_suggest\r\n - /{index}/_suggest"); } - internal ElasticsearchResponse TermvectorDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse TermvectorDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_termvector if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.TermvectorGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.TermvectorGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_termvector if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Termvector(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Termvector(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3431,20 +3431,20 @@ internal ElasticsearchResponse TermvectorDispatch(ElasticsearchPathInfo TermvectorDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> TermvectorDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/{type}/{id}/_termvector if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty()) - return this.Raw.TermvectorGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString); + return this.Raw.TermvectorGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.QueryString, deserializationState); break; case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_termvector if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.TermvectorAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.TermvectorAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3452,14 +3452,14 @@ internal Task TermvectorDispatchAsync(ElasticsearchPathIn } - internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo pathInfo , object body) + internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_update if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.Update(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.Update(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } @@ -3467,14 +3467,14 @@ internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo UpdateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) + internal Task> UpdateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/{type}/{id}/_update if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && !pathInfo.Id.IsNullOrEmpty() && body != null) - return this.Raw.UpdateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString); + return this.Raw.UpdateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.QueryString, deserializationState); break; } diff --git a/src/Nest/Resolvers/Converters/ConcreteTypeConverter.cs b/src/Nest/Resolvers/Converters/ConcreteTypeConverter.cs index bdfb831ae4f..f6ab3ca1aaf 100644 --- a/src/Nest/Resolvers/Converters/ConcreteTypeConverter.cs +++ b/src/Nest/Resolvers/Converters/ConcreteTypeConverter.cs @@ -132,7 +132,7 @@ private static dynamic GetConcreteTypeUsingSelector( hitDynamic.Sorts = d.sort; hitDynamic._Highlight = d.highlight is Dictionary> ? d.highlight : null; hitDynamic.Explanation = d._explanation is Explanation ? d._explanation : null; - object o = hitDynamic.Source ?? ElasticsearchDynamic.Create(fieldSelection) ?? new object {}; + object o = hitDynamic.Source ?? DynamicDictionary.Create(fieldSelection) ?? new object {}; var concreteType = selector(o, hitDynamic); return concreteType; } diff --git a/src/Nest/Resolvers/Converters/IndexSettingsConverter.cs b/src/Nest/Resolvers/Converters/IndexSettingsConverter.cs index 9fe243aa576..f0bcc5062ef 100644 --- a/src/Nest/Resolvers/Converters/IndexSettingsConverter.cs +++ b/src/Nest/Resolvers/Converters/IndexSettingsConverter.cs @@ -134,7 +134,7 @@ public override object ReadJson(JsonReader reader, Type objectType, object exist var dictionary = new Dictionary(); serializer.Populate(o.CreateReader(), dictionary); result.Settings = dictionary; - result._ = ElasticsearchDynamic.Create(dictionary); + result._ = DynamicDictionary.Create(dictionary); foreach (var rootProperty in o.Children()) { if (rootProperty.Name.Equals("analysis", StringComparison.InvariantCultureIgnoreCase)) diff --git a/src/Nest/Resolvers/PropertyNameResolver.cs b/src/Nest/Resolvers/PropertyNameResolver.cs index ebd74c3997d..8824de4423b 100644 --- a/src/Nest/Resolvers/PropertyNameResolver.cs +++ b/src/Nest/Resolvers/PropertyNameResolver.cs @@ -68,7 +68,6 @@ public class PropertyNameResolver : ExpressionVisitor private readonly IConnectionSettingsValues _settings; public PropertyNameResolver(IConnectionSettingsValues settings) { - //TODO remove settings for leave it in to find places its used where it shouldnt _settings = settings; } diff --git a/src/Nest/Resolvers/Writers/TypeMappingWriter.cs b/src/Nest/Resolvers/Writers/TypeMappingWriter.cs index 14fddeb0136..46fee336948 100644 --- a/src/Nest/Resolvers/Writers/TypeMappingWriter.cs +++ b/src/Nest/Resolvers/Writers/TypeMappingWriter.cs @@ -79,21 +79,24 @@ internal RootObjectMapping RootObjectMappingFromAttributes() var json = JObject.Parse(this.MapFromAttributes()); var nestedJson = json.Properties().First().Value.ToString(); - return this._elasticSerializer.Deserialize(nestedJson.Utf8Bytes()); + using (var ms = new MemoryStream(nestedJson.Utf8Bytes())) + return this._elasticSerializer.DeserializeInternal(ms); } internal ObjectMapping ObjectMappingFromAttributes() { var json = JObject.Parse(this.MapFromAttributes()); var nestedJson = json.Properties().First().Value.ToString(); - return this._elasticSerializer.Deserialize(nestedJson.Utf8Bytes()); + using (var ms = new MemoryStream(nestedJson.Utf8Bytes())) + return this._elasticSerializer.DeserializeInternal(ms); } internal NestedObjectMapping NestedObjectMappingFromAttributes() { var json = JObject.Parse(this.MapFromAttributes()); var nestedJson = json.Properties().First().Value.ToString(); - return this._elasticSerializer.Deserialize(nestedJson.Utf8Bytes()); + using (var ms = new MemoryStream(nestedJson.Utf8Bytes())) + return this._elasticSerializer.DeserializeInternal(ms); } internal string MapFromAttributes() { diff --git a/src/Nest/packages.config b/src/Nest/packages.config index 037b768bbcf..e81afdaeceb 100644 --- a/src/Nest/packages.config +++ b/src/Nest/packages.config @@ -1,3 +1,4 @@  + \ No newline at end of file diff --git a/src/Profiling/Profiling.InMemoryConnection/Program.cs b/src/Profiling/Profiling.InMemoryConnection/Program.cs index 4a15a9dade0..cdf589b8461 100644 --- a/src/Profiling/Profiling.InMemoryConnection/Program.cs +++ b/src/Profiling/Profiling.InMemoryConnection/Program.cs @@ -11,22 +11,22 @@ private class Doc public string Id { get; set; } public string Name { get; set; } } - + ///

+ /// Mainly used to profile the serialization performance and memory usage + /// + /// static void Main(string[] args) { var settings = new ConnectionSettings(new Uri("http://localhost:9200"),"test-index"); - var client = new ElasticClient(settings, new Elasticsearch.Net.Connection.InMemoryConnection(settings)); - int calls = 100000; - var steps = calls/10; - var ticks = calls / steps; + var client = new ElasticClient(settings); + int calls = 10000; + Console.WriteLine("done"); + Console.ReadLine(); //using (var pbar = new ProgressBar(ticks, "Doing loads of in memory calls")) { for (int i = calls; i > 0; i--) { - client.Index(new Doc() {Id = "asdasd", Name = "Name"}); - //int m = (i%steps); - //if (m == 0) - // pbar.Tick(); + client.Index(new Doc() {Id = "asdasd" + i, Name = "Name"}); } } Console.WriteLine("done"); diff --git a/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj b/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj index 53e47a4e986..0fbf217aa0b 100644 --- a/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj +++ b/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj @@ -26,7 +26,7 @@ false false true - v4.0 + v4.5 ..\ true @@ -40,6 +40,7 @@ MinimumRecommendedRules.ruleset 4 False + false bin\Release\ @@ -50,6 +51,7 @@ prompt MinimumRecommendedRules.ruleset 4 + false true @@ -59,11 +61,15 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false Profiling.Indexing.Program + + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll + ..\..\..\dep\ServiceStack.Text.3.9.71\lib\net35\ServiceStack.Text.dll diff --git a/src/Profiling/Profiling.Indexing/Program.cs b/src/Profiling/Profiling.Indexing/Program.cs index d9f65afb0e0..6761f7b68c1 100644 --- a/src/Profiling/Profiling.Indexing/Program.cs +++ b/src/Profiling/Profiling.Indexing/Program.cs @@ -19,23 +19,41 @@ class Program static void Main(string[] args) { + var process = Process.GetCurrentProcess(); + var baseThreadCount = process.Threads.Count; + var baseMemorySize = process.VirtualMemorySize64; + //warmer RunTest(HTTP_PORT, 10); + Console.WriteLine("Warmed up caches press any key to index {0} messages", NUM_MESSAGES); + Console.ReadLine(); + ConsoleKeyInfo key; + do + { + key = RunIndex(baseThreadCount, baseMemorySize); + } while (key.KeyChar == 'r'); + + RunIndex(baseThreadCount, baseMemorySize); + + var client = new ElasticClient(new ConnectionSettings(new Uri("http://localhost:9200"), "nest-default-index")); + client.DeleteIndex(d => d.Index(INDEX_PREFIX + "*")); + + } + private static ConsoleKeyInfo RunIndex(int baseThreadCount, long baseMemorySize) + { + var process = Process.GetCurrentProcess(); double httpRate = RunTest(HTTP_PORT); var threadCountHttp = process.Threads.Count; var memorySizeHttp = process.VirtualMemorySize64; - - Console.WriteLine(); - Console.WriteLine("HTTP (IndexManyAsync): {0:0,0}/s {1} Threads {2} Virual memory" - , httpRate, threadCountHttp, memorySizeHttp); - Console.ReadLine(); - - var client = new ElasticClient(new ConnectionSettings(new Uri("http://localhost:9200"), "nest-default-index")); - client.DeleteIndex(d => d.Index(INDEX_PREFIX + "*")); + Console.WriteLine(); + Console.WriteLine("HTTP (IndexManyAsync): {0:0,0}/s\r (Before:After) {1}:{2} Threads {3}:{4} Virtual memory" + , httpRate, baseThreadCount, threadCountHttp, baseMemorySize, memorySizeHttp); + Console.WriteLine("Press r to index again or any other key to delete indices created by this tool."); + return Console.ReadKey(); } private static double RunTest(int port, int? messages = null) where T : ITester diff --git a/src/Profiling/Profiling.Indexing/Serializer/SsTextNestSerializer.cs b/src/Profiling/Profiling.Indexing/Serializer/SsTextNestSerializer.cs index 6ef064f2cd9..ff640ee3037 100644 --- a/src/Profiling/Profiling.Indexing/Serializer/SsTextNestSerializer.cs +++ b/src/Profiling/Profiling.Indexing/Serializer/SsTextNestSerializer.cs @@ -16,18 +16,18 @@ public SsTextNestSerializer(IConnectionSettingsValues settings) { } - public override T Deserialize(byte[] bytes) - { - JsConfig.EmitCamelCaseNames = true; - return Encoding.UTF8.GetString(bytes).FromJson(); - } + //public override T Deserialize(Str) + //{ + // JsConfig.EmitCamelCaseNames = true; + // return Encoding.UTF8.GetString(bytes).FromJson(); + //} - public override byte[] Serialize(object data, SerializationFormatting formatting = SerializationFormatting.Indented) - { - if (formatting == SerializationFormatting.None) - return base.Serialize(data, formatting); - JsConfig.EmitCamelCaseNames = true; - return Encoding.UTF8.GetBytes(data.ToJson()); - } + //public override byte[] Serialize(object data, SerializationFormatting formatting = SerializationFormatting.Indented) + //{ + // if (formatting == SerializationFormatting.None) + // return base.Serialize(data, formatting); + // JsConfig.EmitCamelCaseNames = true; + // return Encoding.UTF8.GetBytes(data.ToJson()); + //} } } diff --git a/src/Profiling/Profiling.Indexing/app.config b/src/Profiling/Profiling.Indexing/app.config index e3656033377..c5e1daefd3d 100644 --- a/src/Profiling/Profiling.Indexing/app.config +++ b/src/Profiling/Profiling.Indexing/app.config @@ -1,3 +1,3 @@ - + diff --git a/src/Profiling/Profiling.Indexing/packages.config b/src/Profiling/Profiling.Indexing/packages.config index a76c07a754d..8d7117ea9e2 100644 --- a/src/Profiling/Profiling.Indexing/packages.config +++ b/src/Profiling/Profiling.Indexing/packages.config @@ -1,5 +1,5 @@  - + \ No newline at end of file diff --git a/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj b/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj index 696f3bae465..f66ec7c773b 100644 --- a/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj +++ b/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj @@ -31,7 +31,7 @@ - ..\..\..\dep\Newtonsoft.Json.5.0.8\lib\net45\Newtonsoft.Json.dll + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll @@ -45,15 +45,15 @@ - - - {e97ccf40-0ba6-43fe-9f2d-58d454134088} Elasticsearch.Net + + + - + - \ No newline at end of file + diff --git a/src/Tests/Nest.Tests.Integration/packages.config b/src/Tests/Nest.Tests.Integration/packages.config index 84148caf3bc..b43436e5fcb 100644 --- a/src/Tests/Nest.Tests.Integration/packages.config +++ b/src/Tests/Nest.Tests.Integration/packages.config @@ -1,7 +1,7 @@  - - - + + + \ No newline at end of file diff --git a/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj b/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj index 9c0a3a31181..af1a7082413 100644 --- a/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj +++ b/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj @@ -13,6 +13,8 @@ 512 ..\ true + v4.5 + True @@ -31,6 +33,7 @@ true 4 False + false bin\Release\ @@ -48,6 +51,7 @@ ;d:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules true 4 + false true @@ -57,13 +61,17 @@ AnyCPU prompt MinimumRecommendedRules.ruleset + false ..\..\..\dep\AutoPoco.1.0.0.0\lib\AutoPoco.dll - - ..\..\dep\NUnit.2.6.1\lib\nunit.framework.dll + + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll + + + ..\..\..\dep\NUnit.2.6.3\lib\nunit.framework.dll diff --git a/src/Tests/Nest.Tests.MockData/NestTestData.cs b/src/Tests/Nest.Tests.MockData/NestTestData.cs index 0dfb786b7e3..2ed968521c7 100644 --- a/src/Tests/Nest.Tests.MockData/NestTestData.cs +++ b/src/Tests/Nest.Tests.MockData/NestTestData.cs @@ -13,9 +13,9 @@ namespace Nest.Tests.MockData { public static class NestTestData { - private static IEnumerable _People { get; set; } - private static IEnumerable _BoolTerms { get; set; } - private static IEnumerable _Data { get; set; } + private static IList _People { get; set; } + private static IList _BoolTerms { get; set; } + private static IList _Data { get; set; } public static IGenerationSession _Session { get; set; } public static IGenerationSession Session { @@ -69,7 +69,7 @@ public static IGenerationSession Session } } - public static IEnumerable People + public static IList People { get { @@ -81,7 +81,7 @@ public static IEnumerable People } } - public static IEnumerable BoolTerms + public static IList BoolTerms { get { @@ -93,7 +93,7 @@ public static IEnumerable BoolTerms } } - public static IEnumerable Data + public static IList Data { get { diff --git a/src/Tests/Nest.Tests.MockData/app.config b/src/Tests/Nest.Tests.MockData/app.config index 2fa98702c9d..04620c92a58 100644 --- a/src/Tests/Nest.Tests.MockData/app.config +++ b/src/Tests/Nest.Tests.MockData/app.config @@ -21,4 +21,4 @@ - + diff --git a/src/Tests/Nest.Tests.MockData/packages.config b/src/Tests/Nest.Tests.MockData/packages.config index ce7f62deea7..5b685f75ff1 100644 --- a/src/Tests/Nest.Tests.MockData/packages.config +++ b/src/Tests/Nest.Tests.MockData/packages.config @@ -1,6 +1,6 @@  - - + + \ No newline at end of file diff --git a/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs b/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs index dee9c35b8d9..38516517a39 100644 --- a/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs +++ b/src/Tests/Nest.Tests.Unit/BaseJsonTests.cs @@ -30,7 +30,8 @@ public class BaseJsonTests public BaseJsonTests() { - this._settings = new ConnectionSettings(Test.Default.Uri, Test.Default.DefaultIndex); + this._settings = new ConnectionSettings(Test.Default.Uri, Test.Default.DefaultIndex) + .ExposeRawResponse(); this._connection = new InMemoryConnection(this._settings); this._client = new ElasticClient(this._settings, this._connection); } diff --git a/src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs b/src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs index c415f16bc68..33cd37b156b 100644 --- a/src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs +++ b/src/Tests/Nest.Tests.Unit/BigBadUrlUnitTests.cs @@ -141,10 +141,9 @@ public void TestAllTheUrls() Do("GET", "/mycustomindex/_segments", c => c.Segments(s => s.Index("mycustomindex"))); Do("POST", "/_gateway/snapshot", c => c.Snapshot()); Do("POST", "/mydefaultindex/_gateway/snapshot", c => c.Snapshot(s => s.Index())); - //no _source here just yet, _source = 0.90.1 and up. - Do("GET", "/mydefaultindex/doc/1", c => c.Source(1)); - Do("GET", "/mycustomindex/mytype/1", c => c.Source(1, index: "mycustomindex", type: "mytype")); - Do("GET", "/mycustomindex/doc/1", c => c.Source(s => s.Id(1).Index("mycustomindex"))); + Do("GET", "/mydefaultindex/doc/1/_source", c => c.Source(1)); + Do("GET", "/mycustomindex/mytype/1/_source", c => c.Source(1, index: "mycustomindex", type: "mytype")); + Do("GET", "/mycustomindex/doc/1/_source", c => c.Source(s => s.Id(1).Index("mycustomindex"))); Do("GET", "/mydefaultindex/doc/1?fields=id", c => c.SourceFields(g => g.Id(1).Fields(f => f.Id))); Do("GET", "/_status", c => c.Status()); Do("GET", "/mydefaultindex/_status", c => c.Status(s => s.Index())); diff --git a/src/Tests/Nest.Tests.Unit/Core/Get/GetTests.cs b/src/Tests/Nest.Tests.Unit/Core/Get/GetTests.cs index f72c16444a0..ddf59a24ae1 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Get/GetTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Get/GetTests.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Elasticsearch.Net; using NUnit.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -21,7 +22,8 @@ public void GetSimple() { var result = this._client.Get(g=>g.Id(1)); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", + result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data/elasticsearchprojects/1", status.RequestUrl); } diff --git a/src/Tests/Nest.Tests.Unit/Core/Map/PutMappingRequestTests.cs b/src/Tests/Nest.Tests.Unit/Core/Map/PutMappingRequestTests.cs index 892fc249739..919624da6c3 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Map/PutMappingRequestTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Map/PutMappingRequestTests.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Elasticsearch.Net; using NUnit.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -23,7 +24,7 @@ public void DefaultPath() ); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data/elasticsearchprojects/_mapping", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -34,7 +35,7 @@ public void AllIndices() .Indices("_all") ); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/_all/elasticsearchprojects/_mapping", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -45,7 +46,7 @@ public void MultipleIndices() .Indices("nest_test_data", "nest_test_data_clone") ); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data%2Cnest_test_data_clone/elasticsearchprojects/_mapping", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -57,7 +58,7 @@ public void MultipleIndicesIgnoreConflicts() .Indices("nest_test_data", "nest_test_data_clone") ); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data%2Cnest_test_data_clone/elasticsearchprojects/_mapping?ignore_conflicts=true", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -70,7 +71,7 @@ public void MultipleIndicesIgnoreConflictsCustomTypeName() .Indices("nest_test_data", "nest_test_data_clone") ); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data%2Cnest_test_data_clone/es_projects/_mapping?ignore_conflicts=true", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } diff --git a/src/Tests/Nest.Tests.Unit/Core/MoreLikeThis/MltUrlTests.cs b/src/Tests/Nest.Tests.Unit/Core/MoreLikeThis/MltUrlTests.cs index ff4b3624697..85e8a77e08b 100644 --- a/src/Tests/Nest.Tests.Unit/Core/MoreLikeThis/MltUrlTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/MoreLikeThis/MltUrlTests.cs @@ -12,7 +12,7 @@ public void MltSimpleById() { var result = this._client.MoreLikeThis(mlt => mlt.Id(1)); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data/elasticsearchprojects/1/_mlt", status.RequestUrl); StringAssert.AreEqualIgnoringCase("GET", status.RequestMethod); } diff --git a/src/Tests/Nest.Tests.Unit/Core/Template/PutTemplateRequestTests.cs b/src/Tests/Nest.Tests.Unit/Core/Template/PutTemplateRequestTests.cs index 9aaddbb2128..79a51cbf965 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Template/PutTemplateRequestTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Template/PutTemplateRequestTests.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Elasticsearch.Net; using NUnit.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -23,7 +24,7 @@ public void DefaultPath() var result = this._client.PutTemplate("myTestTemplateName", t=>t.Template("tmasdasda")); Assert.NotNull(result, "PutTemplate result should not be null"); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/_template/myTestTemplateName", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } diff --git a/src/Tests/Nest.Tests.Unit/Core/Warmers/PutWarmerRequestTests.cs b/src/Tests/Nest.Tests.Unit/Core/Warmers/PutWarmerRequestTests.cs index 98970373b74..abb62fff49b 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Warmers/PutWarmerRequestTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Warmers/PutWarmerRequestTests.cs @@ -2,6 +2,7 @@ using System.Collections.Generic; using System.Linq; using System.Text; +using Elasticsearch.Net; using NUnit.Framework; using Newtonsoft.Json; using Newtonsoft.Json.Linq; @@ -26,7 +27,7 @@ public void PathWithType() .Search(s => s)); Assert.NotNull(result, "PutWarmer result should not be null"); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/nest_test_data/elasticsearchprojects/_warmer/warmer_pathwithtype", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -39,7 +40,7 @@ public void PathWithDynamic() .Search(s => s)); Assert.NotNull(result, "PutWarmer result should not be null"); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/my_index/_warmer/warmer_pathwithdynamic", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } @@ -52,7 +53,7 @@ public void PathWithAllIndices() .Search(s => s)); Assert.NotNull(result, "PutWarmer result should not be null"); var status = result.ConnectionStatus; - StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.Result); + StringAssert.Contains("USING NEST IN MEMORY CONNECTION", result.ConnectionStatus.ResponseRaw.Utf8String()); StringAssert.EndsWith("/_all/_warmer/warmer_pathwithallindices", status.RequestUrl); StringAssert.AreEqualIgnoringCase("PUT", status.RequestMethod); } diff --git a/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj b/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj index 278ae2f1e85..d65a407b871 100644 --- a/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj +++ b/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj @@ -13,6 +13,8 @@ 512 ..\ true + v4.5 + True @@ -31,6 +33,7 @@ false 4 False + false bin\Release\ @@ -48,6 +51,7 @@ ;d:\Program Files\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules false 4 + false true @@ -61,6 +65,7 @@ false 4 false + false @@ -71,16 +76,16 @@ ..\..\..\dep\FakeItEasy.1.15.0\lib\net40\FakeItEasy.dll - ..\..\..\dep\FluentAssertions.2.0.0.1\lib\net40\FluentAssertions.dll + ..\..\..\dep\FluentAssertions.2.2.0.0\lib\net45\FluentAssertions.dll ..\..\..\dep\Moq.4.2.1312.1622\lib\net40\Moq.dll - ..\..\..\dep\Newtonsoft.Json.5.0.8\lib\net40\Newtonsoft.Json.dll + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll - - ..\..\..\dep\NUnit.2.6.1\lib\nunit.framework.dll + + ..\..\..\dep\NUnit.2.6.3\lib\nunit.framework.dll diff --git a/src/Tests/Nest.Tests.Unit/Test.Designer.cs b/src/Tests/Nest.Tests.Unit/Test.Designer.cs index 6437a8a2f83..71887d18cd7 100644 --- a/src/Tests/Nest.Tests.Unit/Test.Designer.cs +++ b/src/Tests/Nest.Tests.Unit/Test.Designer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.18010 +// Runtime Version:4.0.30319.34003 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -12,7 +12,7 @@ namespace Nest.Tests.Unit { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "12.0.0.0")] internal sealed partial class Test : global::System.Configuration.ApplicationSettingsBase { private static Test defaultInstance = ((Test)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Test()))); diff --git a/src/Tests/Nest.Tests.Unit/app.config b/src/Tests/Nest.Tests.Unit/app.config index d8850d5f27c..8cb2ea39b1c 100644 --- a/src/Tests/Nest.Tests.Unit/app.config +++ b/src/Tests/Nest.Tests.Unit/app.config @@ -1,11 +1,11 @@ - -
+ +
- + 9200 diff --git a/src/Tests/Nest.Tests.Unit/packages.config b/src/Tests/Nest.Tests.Unit/packages.config index 428c3b49cbf..c03f0318ed9 100644 --- a/src/Tests/Nest.Tests.Unit/packages.config +++ b/src/Tests/Nest.Tests.Unit/packages.config @@ -2,8 +2,8 @@ - + - - + + \ No newline at end of file